Skip to content

withHeaderValue

withHeaderValue(transport, headerName, resolveValue): EndpointTransport

Defined in: wp-typia-api-client/src/client.ts:375

Attach one computed header value to every request executed by a transport.

EndpointTransport

Base transport to wrap.

string

Header name to inject.

HeaderValueResolver

Async or sync resolver for the header value.

EndpointTransport

A transport that only adds the header when a value is returned.