Method
WithHeader
func WithHeader(name: string, value: string) -> Result<HttpRequest, HttpError>
Declaring type: HttpRequest
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpClient.rvn
Returns a new request with one application header replaced case-insensitively. The original request is unchanged; content is shared and framing stays provider-owned.
Parameters
| Name | Type | Description |
|---|---|---|
name |
String | |
value |
String |