rest-vir - v2.2.0
    Preparing search index...

    Type Alias EndpointResponseOutgoingHeadersType<Endpoint, Method, Status>

    EndpointResponseOutgoingHeadersType: NonNullable<
        NonNullable<
            Extract<
                Extract<Endpoint, EndpointDefinition>["requests"][Extract<
                    Method,
                    DefinableHttpMethod,
                >],
                EndpointMethodDefinition,
            >["responses"],
        >[Extract<Status, HttpStatus>],
    >["requiredResponseHeaders"] extends infer RequiredHeaders extends
        BaseRequiredResponseHeaders
        ? IsNever<RequiredHeaders> extends true
            ? DefaultOutgoingResponseHeadersType
            : {
                [HeaderKey in keyof RequiredHeaders]: ExtractRequiredHeaderValue<
                    RequiredHeaders[HeaderKey],
                >
            } & DefaultOutgoingResponseHeadersType
        : DefaultOutgoingResponseHeadersType

    Like EndpointResponseHeadersType but for the write side: any non-required header may be either a single string or an array of strings. Used in implementation-output positions so endpoints can emit multi-valued headers (most notably Set-Cookie).

    Type Parameters