Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 569 Bytes

File metadata and controls

25 lines (16 loc) · 569 Bytes

This API is a stub and not implemented yet.

HTTP API

import {serve, Response} from "std/http";

// uses a default host and port if no `options` is given as second parameter
serve(request => new Response(null, {status: 404}));

Spec

This standard library module implements a superset of the WHATWG Fetch API.

Specifically, in addition to fetch, Headers, Request and Response of the Fetch API, this module will implement at least a serve function as a companion to fetch.

License

MIT