Message: Readonly< { create: ( a: unknown, ) => Result< Readonly< { authority: string | null; body: Body; fields: readonly Readonly< { name: string; provenance: "caller" | "http1" | "http2" | "http3"; section: "headers" | "trailers"; value: Uint8Array; }, >[]; kind: "request" | "response"; method: string | null; rawTarget: string | null; relatedRequest: | (
Readonly<{ kind: "request" | "response"; method: string | null; rawTarget: string | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; scheme: string | null; authority: string | null; ... 5 more ...; transport: Readonly<...>; }>
)
| null; scheme: string | null; status: number | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; trailers: | "unavailable" | readonly Readonly< { name: string; provenance: (...)
| (...)
| (...)
| (...)
; section: (...)
| (...)
; value: Uint8Array; }, >[] | "pending"; transport: TransportFacts; }, >, >; request: ( method: unknown, target: unknown, fields: unknown, bytes: unknown, options?: unknown, ) => Promise< Result< Readonly< { authority: string | null; body: Body; fields: readonly Readonly< { name: string; provenance: (...)
| (...)
| (...)
| (...)
; section: (...)
| (...)
; value: Uint8Array; }, >[]; kind: "request" | "response"; method: string | null; rawTarget: string | null; relatedRequest: | (
Readonly<{ kind: "request" | "response"; method: string | null; rawTarget: string | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; scheme: string | null; authority: string | null; ... 5 more ...; transport: Readonly<...>; }>
)
| null; scheme: string | null; status: number | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; trailers: | "unavailable" | readonly Readonly< { name: ...
; provenance: ...
; section: ...
; value: ...
}, >[] | "pending"; transport: TransportFacts; }, >, >, >; response: ( status: unknown, fields: unknown, bytes: unknown, options?: unknown, ) => Promise< Result< Readonly< { authority: string | null; body: Body; fields: readonly Readonly< { name: string; provenance: (...)
| (...)
| (...)
| (...)
; section: (...)
| (...)
; value: Uint8Array; }, >[]; kind: "request" | "response"; method: string | null; rawTarget: string | null; relatedRequest: | (
Readonly<{ kind: "request" | "response"; method: string | null; rawTarget: string | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; scheme: string | null; authority: string | null; ... 5 more ...; transport: Readonly<...>; }>
)
| null; scheme: string | null; status: number | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; trailers: | "unavailable" | readonly Readonly< { name: ...
; provenance: ...
; section: ...
; value: ...
}, >[] | "pending"; transport: TransportFacts; }, >, >, >; validate: ( a: unknown, ) => Result< Readonly< { authority: string | null; body: Body; fields: readonly Readonly< { name: string; provenance: "caller" | "http1" | "http2" | "http3"; section: "headers" | "trailers"; value: Uint8Array; }, >[]; kind: "request" | "response"; method: string | null; rawTarget: string | null; relatedRequest: | (
Readonly<{ kind: "request" | "response"; method: string | null; rawTarget: string | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; scheme: string | null; authority: string | null; ... 5 more ...; transport: Readonly<...>; }>
)
| null; scheme: string | null; status: number | null; targetForm: "origin" | "absolute" | "authority" | "asterisk" | null; trailers: | "unavailable" | readonly Readonly< { name: string; provenance: (...)
| (...)
| (...)
| (...)
; section: (...)
| (...)
; value: Uint8Array; }, >[] | "pending"; transport: TransportFacts; }, >, >; },>
Lossless HTTP message construction and validation.