Show / Hide Table of Contents

Class CoreHttpClient

Implementation for a typed .

Inheritance
System.Object
CoreHttpClient
Implements
ICoreHttpClient
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 Source

CoreHttpClient(HttpClient)

Constructor of the CoreHttpClient.

Declaration
public CoreHttpClient(HttpClient httpClient)
Parameters
Type Name Description
HttpClient httpClient

An that will execute the request

Methods

| Improve this Doc View Source

SendAsync(HttpRequestMessage)

Sends an .

Declaration
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage httpRequestMessage)
Parameters
Type Name Description
HttpRequestMessage httpRequestMessage

The to be sent.

Returns
Type Description
Task<HttpResponseMessage>

An .

| Improve this Doc View Source

SetTimeout(TimeSpan)

Set the timeout for the next request.

Declaration
public void SetTimeout(TimeSpan timeout)
Parameters
Type Name Description
TimeSpan timeout

The timeout.

Implements

ICoreHttpClient
  • Improve this Doc
  • View Source
Back to top Generated by DocFX