class HttpRequest
implements ServerRequest
import { HttpRequest } from "https://deno.land/x/oak@v11.1.0/http_request.ts";
An abstraction which wraps a Request
from Deno's flash server.
The constructor takes a Deferred
which it will resolve when the
response is ready.
This request can be used in situations where there isn't a specific method
to respond with, but where a Promise<Response>
is accepted as a value. It
is specifically designed to work with Deno's flash server.
Constructors
Properties
readonly
headers: HeadersMethods
error(reason?: any): void
upgrade(options?: UpgradeWebSocketOptions): WebSocket