Skip to main content
Module

x/alosaur/src/models/context.ts

Alosaur - Deno web framework with many decorators
Go to Latest
File
import { Request } from "./request.ts";import { Response } from "./response.ts";import { ServerRequest } from "../deps.ts";
export class Context<T> { public readonly request: Request; public readonly response: Response;
public state?: T;
constructor(serverRequest: ServerRequest) { this.request = new Request(serverRequest); this.response = new Response(); }}