KestrunResponse.GetHeader method

Retrieves the value of the specified header from the response headers.

public string? GetHeader(string key)
parameter description
key The name of the header to retrieve.

Return Value

The value of the header if found; otherwise, null.

See Also