Variable validateMessageConst
validateMessage: ( 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: "caller" | "http1" | "http2" | "http3"; section: "headers" | "trailers"; value: Uint8Array; }, >[] | "pending"; transport: TransportFacts; }, >,> = createMessage
Type Declaration
-
- (
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: "caller"
| "http1"
| "http2"
| "http3";
section: "headers" | "trailers";
value: Uint8Array;
},
>[]
| "pending";
transport: TransportFacts;
},
>,
>
-
Returns 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: "caller"
| "http1"
| "http2"
| "http3";
section: "headers" | "trailers";
value: Uint8Array;
},
>[]
| "pending";
transport: TransportFacts;
},
>,
>
Validate a message snapshot through the same constructor boundary.