@hpke/ohttp
Version:
Oblivious HTTP (RFC 9458) client and server using HPKE
18 lines • 617 B
TypeScript
/**
* Binary HTTP (RFC 9292) encoder.
*
* Messages are always encoded in the known-length format without padding.
* Trailers and informational responses cannot be expressed with the Fetch API
* `Request`/`Response` objects and are therefore never emitted.
*
* @module
*/
/**
* Encodes a `Request` as a known-length Binary HTTP request.
*/
export declare function encodeRequest(request: Request): Promise<Uint8Array>;
/**
* Encodes a `Response` as a known-length Binary HTTP response.
*/
export declare function encodeResponse(response: Response): Promise<Uint8Array>;
//# sourceMappingURL=encoder.d.ts.map