@bjorkhaug/sresponses
v0.0.1
Published
Simple response functions for Deno to help with consistent response creation.
Downloads
2
Readme
SResponses
Package to deal with responses from the server in Deno.
Usage
import { ok } from "npm:@bjorkhaug/sresponses";
function GET() {
const headers = new Headers()
headers.set("Content-Type", "application/json")
const body = JSON.stringify({ message: "Hello, World!" })
return ok(body, { headers })
}