Method WithHeader
- Namespace
- HttpBuildR
- Assembly
- HttpBuildR.Response.dll
WithHeader(HttpResponseMessage, string, string?)
Adds a header to the response
public static HttpResponseMessage WithHeader(this HttpResponseMessage response, string name, string? value)
Parameters
response
HttpResponseMessageresponse
name
stringheader name
value
stringvalue
Returns
- HttpResponseMessage
response
WithHeader(HttpResponseMessage, string, params string[])
Adds a header to the response
public static HttpResponseMessage WithHeader(this HttpResponseMessage response, string name, params string[] values)
Parameters
response
HttpResponseMessageresponse
name
stringheader name
values
string[]values
Returns
- HttpResponseMessage
response