Table of Contents

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 HttpResponseMessage

response

name string

header name

value string

value

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 HttpResponseMessage

response

name string

header name

values string[]

values

Returns

HttpResponseMessage

response