Skip to main content
Module

x/texa/src/structure/Request.ts>Request

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
class Request
import { Request } from "https://deno.land/x/texa@0.8.1/src/structure/Request.ts";

A server request object.

Constructors

new
Request(pair: Pair)

Initiate a new server request.

Properties

readonly
_body: string | void

The original request body.

readonly
at: number

A unix timestamp in ms at since the request object was created.

readonly
body: any | void

The request body.

readonly
headers: RequestHeaders

The request headers.

readonly
ip: string

The requester's IP address.

readonly
meta: AnyObject

Meta information on the request.

readonly
method: string

The request method.

readonly
originalUrl: URL

Added an original URL property.

readonly
params: AnyObject

The request parameters.

readonly
url: URL

A URL object.

Methods

_init(): Promise<void>
close(): this

Close the connection without sending a response.