Skip to main content
Module

x/fastro/mod.ts>Context

Fast and simple web application framework for deno
Go to Latest
interface Context
import { type Context } from "https://deno.land/x/fastro@v0.84.5/mod.ts";

Properties

render: <T>(data?: T) => Response | Promise<Response>

Render a JSX Component or a Page with data

  • If you call it from a standart handler (GET, POST, PUT, DELETE), it will render a JSX component.
  • If you call it from a page handler, it will render the data using the predefined JSX layout.

Information for a HTTP request.

send: <T>(data?: T, status?: number) => Response | Promise<Response>
next: Next
server: Fastro
url: URL
options: Record<string, any>