@hpke/ohttp
Version:
Oblivious HTTP (RFC 9458) client and server using HPKE
19 lines • 649 B
TypeScript
/**
* Binary HTTP (RFC 9292) decoder.
*
* Both known-length and indeterminate-length messages are supported,
* including truncated messages (Section 3.8) and padding (Section 3.8).
* Trailers and informational (1xx) responses are validated but discarded since
* they cannot be expressed with the Fetch API `Request`/`Response` objects.
*
* @module
*/
/**
* Decodes a Binary HTTP request into a `Request`.
*/
export declare function decodeRequest(src: Uint8Array): Request;
/**
* Decodes a Binary HTTP response into a `Response`.
*/
export declare function decodeResponse(src: Uint8Array): Response;
//# sourceMappingURL=decoder.d.ts.map