Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ghst/res.ts>HTTPResponse#end

A light-weight http framework built for Deno.
Latest
method HTTPResponse.prototype.end
import { HTTPResponse } from "https://deno.land/x/ghst@v1.1.4/res.ts";

Sends the request. If not called then will automatically be called.

Examples

const ghst = new GhstApplication();

ghst.onRequest("/","GET",(req,res) => { res.send("Hello World!"); res.end(); res.send("Welcome to my web app!"); // doesn't send. });