Show / Hide Table of Contents

Interface ICoreHttpClient

Abstraction for a typed .

Namespace: Geko.HttpClientService.Infrastructure
Assembly: Geko.HttpClientService.dll
Syntax
public interface ICoreHttpClient

Methods

| Improve this Doc View Source

SendAsync(HttpRequestMessage)

Sends an .

Declaration
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
void SetTimeout(TimeSpan timeout)
Parameters
Type Name Description
TimeSpan timeout

The timeout.

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • SendAsync(HttpRequestMessage)
    • SetTimeout(TimeSpan)
Back to top Generated by DocFX