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

x/authlete_deno/src/web/response_util.ts

Authlete Library for Deno
Go to Latest
import * as authleteDeno from "https://deno.land/x/authlete_deno@v1.2.3/src/web/response_util.ts";

Classes

'Cache-Control' header values.

'Content-Type' header values.

Header properties.

'Pragma' header values.

HTTP status code.

Functions

Create a response of '400 Bad Request' formatted in 'application/json; charset=utf-8'.

Build a Response object.

Create a response of '201 Created' with the given content formatted in 'application/json; charset=utf-8'.

Create a response of '403 Forbidden' formatted in 'application/json; charset=utf-8'.

Create a response of '500 Internal Server Error' formatted in the given type. The type parameter defaults to ContentType.APPLICATION_JSON_UTF8 (= application/javascript; charset=utf-8).

Create a response of '302 Found' with the given location.

Create a response of '204 No Content'.

Create a response of '404 Not Found' formatted in 'application/json; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in the given type. The type parameter defaults to ContentType.APPLICATION_JSON_UTF8 (= application/javascript; charset=utf-8).

Create a response of '200 OK' with the given content formatted in 'text/html; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in 'application/javascript; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in 'application/json; charset=utf-8'.

Create a response of '200 OK' with the given content formatted in 'application/jwt'.

Create a response of '401 Unauthorized' formatted in 'application/json; charset=utf-8'.

Create a response with the given status and WWW-Authenticate header having the given challenge as its value.