Skip to main content
Module

x/texa/src/types.ts

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
File
// Importsimport type { Pair } from "./structure/Pair.ts";
/** A kind header value. */export type HeaderValue = string | number | boolean | bigint;
/** A kind header object. */export type HeadersObject = { [key: string]: HeaderValue };
/** An address. */export type Address = { hostname: string, port: number};
export type MiddlewareFn = (req: Pair["request"], res: Pair["response"]) => any;