Definition
Assembly: System.Net.Http.dll Namespace: System.Net.HttpSyntax
Summary
This type is defined in System.Net.Http.Remarks
See Microsoft documentation for more information about the rest of the API.Methods
ExecuteTestRequest Extension
Extension method from
System.Net.Http.Breakdance_WebApi_HttpClientExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
httpClient | System.Net.Http.HttpClient | The HttpClient instance to use. |
httpMethod | System.Net.Http.HttpMethod | The HttpMethod to use for the request. |
host | string | The hostname to use for this request. Defaults to “http://localhost”, only change it if that collides with other services running on the local machine. |
routePrefix | string | The routePrefix corresponding to the route already mapped in MapRestierRoute or GetTestableConfiguration. Defaults to “api/test”, only change it if absolutely necessary. |
resource | string | The resource on the API to be requested. |
acceptHeader | string | The inbound MIME types to accept. Defaults to “application/json”. |
payload | object | - |
jsonSerializerSettings | Newtonsoft.Json.JsonSerializerSettings | - |
Returns
Type:System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
An HttpResponseMessage containing the results of the attempted request.