Table of Contents

Interface ISpeakeasyHttpClient

Namespace
Styra.Opa.OpenApi.Utils
Assembly
Styra.Opa.dll
public interface ISpeakeasyHttpClient

Methods

CloneAsync(HttpRequestMessage)

Clones an HTTP request asynchronously.

Task<HttpRequestMessage> CloneAsync(HttpRequestMessage request)

Parameters

request HttpRequestMessage

The HTTP request message to clone.

Returns

Task<HttpRequestMessage>

The value of the TResult parameter contains the cloned HTTP request message.

Remarks

This method is used in the context of Retries. It creates a new HttpRequestMessage instance as a deep copy of the original request, including its method, URI, content, headers and options.

SendAsync(HttpRequestMessage)

Sends an HTTP request asynchronously.

Task<HttpResponseMessage> SendAsync(HttpRequestMessage request)

Parameters

request HttpRequestMessage

The HTTP request message to send.

Returns

Task<HttpResponseMessage>

The value of the TResult parameter contains the HTTP response message.