Skip to main content
Member of ML.SDK.MLHttpClient
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

ParameterTypeDescription
urlstringWeb request URL.
methodHttpMethodRequest Method.
databyte[]Outgoing Data
extraHeadersDictionary<[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

MLHttpWebRequest

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.