@lucid-softworks/http-core
v0.1.0
Published
Standards-based HTTP handlers, request contexts, methods, and header utilities.
Downloads
240
Maintainers
Readme
@lucid-softworks/http-core
Shared standards-based handler, context, method, and header contracts.
import {
createHttpContext,
type HttpHandler,
} from "@lucid-softworks/http-core";
const handler: HttpHandler = (_request, context) =>
new Response(context.requestId);
await handler(request, createHttpContext());Each context owns route parameters, a state map, a request ID, and a
runtime-neutral waitUntil hook.
