Represents a generic HTTP adapter for handling incoming requests and responses.
Required Methods:
listen(endpoint, handler, ...args)
getRequestBody(req)
Uint8Array
Any adapter must implement these methods to be compatible with this library.
Prebuilt adapters are available:
Represents a generic HTTP adapter for handling incoming requests and responses.
Required Methods:
listen(endpoint, handler, ...args)
– Starts listening on a given endpoint and routes incoming requests to the provided handler.getRequestBody(req)
– Retrieves the raw body of a request as aUint8Array
.Any adapter must implement these methods to be compatible with this library.
Prebuilt adapters are available: