Class CoreHttpClient
Implementation for a typed
Inheritance
System.Object
CoreHttpClient
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Geko.HttpClientService.Infrastructure
Assembly: Geko.HttpClientService.dll
Syntax
public class CoreHttpClient : ICoreHttpClient
Constructors
| Improve this Doc View SourceCoreHttpClient(HttpClient)
Constructor of the CoreHttpClient.
Declaration
public CoreHttpClient(HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
HttpClient | httpClient | An |
Methods
| Improve this Doc View SourceSendAsync(HttpRequestMessage)
Sends an
Declaration
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage httpRequestMessage)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | httpRequestMessage | The |
Returns
Type | Description |
---|---|
Task<HttpResponseMessage> | An |
SetTimeout(TimeSpan)
Set the timeout for the next request.
Declaration
public void SetTimeout(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | The timeout. |