Skip to main content
Module

x/mith/response.ts>Response

A middleware framework for Deno's http/s server.
Latest
class Response
implements IResponse
import { Response } from "https://deno.land/x/mith@v0.9.6/response.ts";

This class represents the response object from Mith framework

Constructors

new
Response(req: ServerRequest)

Properties

private
request: ServerRequest
body: any
optional
error: any
finished: boolean
headers: Headers
sent: boolean
status: number

Methods

redirect(url: string | URL | REDIRECT_BACK, alt?: string | URL)

Redirects the user to the chosen URL

Sends the response back to the caller