Member of ML.SDK.MLHttpClient
MLHttpWebRequest MLHttpClient.WebRequest(string url, HttpMethod method, byte[] data, Dictionary
Method
MLHttpWebRequest MLHttpClient.WebRequest(string url, HttpMethod method, byte[] data, Dictionary<[string](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=netframework-4.5), [string](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=netframework-4.5)>
extraHeaders = null)
MLHttpWebRequest MLHttpClient.WebRequest(string url, HttpMethod method, byte[] data, Dictionary`<string, string>` extraHeaders = null);
Parameters
Parameter | Type | Description |
---|---|---|
url | string | Web request URL. |
method | HttpMethod | Request Method. |
data | byte[] | Outgoing Data |
extraHeaders | Dictionary<[string](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=netframework-4.5), [string](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=netframework-4.5)> | Optional extra headers to be attached to the request. |
Returns
Yield-able request.
Summary
Sends a new Web Request with a byte array content. A URL, HTTP Method and a byte array are required. Extra headers may be provided.