You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
597 B
31 lines
597 B
import { ServerRequest } from '../../external/http.ts'
|
|
import {HTTPResponse} from "./HTTPResponse.ts";
|
|
|
|
export interface HTTPProtocol {
|
|
string: string,
|
|
major: number,
|
|
minor: number,
|
|
}
|
|
|
|
export interface RemoteHost {
|
|
hostname: string,
|
|
port: number,
|
|
transport: string,
|
|
}
|
|
|
|
export interface HTTPRequest {
|
|
url: string
|
|
method: string
|
|
protocol: HTTPProtocol
|
|
headers: Headers
|
|
connection: Deno.Conn
|
|
response: HTTPResponse
|
|
to_native: ServerRequest
|
|
|
|
remote: RemoteHost
|
|
body: any
|
|
query: any
|
|
hostname: string | undefined
|
|
secure: boolean
|
|
}
|