WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestOption Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures a value for the HTTP request.
public:
[System::Runtime::CompilerServices::Extension]
static System::Net::Http::HttpRequestMessage ^ SetBrowserRequestOption(System::Net::Http::HttpRequestMessage ^ requestMessage, System::String ^ name, System::Object ^ value);
public static System.Net.Http.HttpRequestMessage SetBrowserRequestOption (this System.Net.Http.HttpRequestMessage requestMessage, string name, object value);
static member SetBrowserRequestOption : System.Net.Http.HttpRequestMessage * string * obj -> System.Net.Http.HttpRequestMessage
<Extension()>
Public Function SetBrowserRequestOption (requestMessage As HttpRequestMessage, name As String, value As Object) As HttpRequestMessage
Parameters
- requestMessage
- HttpRequestMessage
The HttpRequestMessage.
- name
- String
The name of the option, which should correspond to a key defined on https://fetch.spec.whatwg.org/#requestinit.
- value
- Object
The value, which must be JSON-serializable.
Returns
The HttpRequestMessage.
Remarks
See https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch.