Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/bun_tea/core/context.ts>AppContext#halt

Fast, Bun-powered, and Bun-only(for now) Web API framework with full Typescript support.
Latest
method AppContext.prototype.halt
import { AppContext } from "https://deno.land/x/bun_tea@v0.0.1-alpha.20/core/context.ts";

Halt flow, and return with currently provided status

Parameters

statusCode: number

status code to use

body: any

the body to send in response. Could be json, string, etc.