Skip to main content
Module

x/texa/mod.ts>Pair

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

A pair of request and response object.

Constructors

new
Pair(app: Application, _request: ServerRequest)

Initiate a new request and response pair.

Properties

ENDED: boolean

Whether or not the response has been sent.

ENDING: boolean

Whether or not the response is currently being sent.

readonly
request: Request

The generated request.

readonly
response: Response

The generated response.

readonly
WRITABLE: boolean

Whether or not properties are changable.

Methods

init(): Promise<void>

Static Properties

readonly
NOT_WRITABLE: string