Skip to main content
Module

x/aleph/api.ts>AlephAPIResponse

The Full-stack Framework in Deno.
Go to Latest
class AlephAPIResponse
implements APIResponse
import { AlephAPIResponse } from "https://deno.land/x/aleph@v0.2.3/api.ts";

Constructors

new
AlephAPIResponse(req: ServerRequest)

Methods

addHeader(key: string, value: string): this
end(status: number)
json(
data: any,
replacer?: (
this: any,
key: string,
value: any,
) => any
,
space?: string | number,
)
removeHeader(key: string): this
send(data: string | Uint8Array | ArrayBuffer, contentType?: string)
setHeader(key: string, value: string): this
status(code: number): this