Method Set
Set(List<HttpHeader>, in HttpHeader)
Sets an HttpHeader in the list. If a header with the same name already exists, it is removed before the new header is added. This operation is thread-safe.
public static void Set(this List<HttpHeader> headers, in HttpHeader header)
Parameters
headers
List<HttpHeader>The list of HttpHeader to modify.
header
HttpHeaderThe HttpHeader to set.