Table of Contents

Class AptosRequestClient

Namespace
Aptos
Assembly
Aptos.dll
public class AptosRequestClient : RequestClient
Inheritance
AptosRequestClient
Inherited Members

Constructors

AptosRequestClient()

Creates a request client with the default 30s per-request timeout. Use the overload that accepts a TimeSpan to configure a different timeout, or pass InfiniteTimeSpan to disable timeouts entirely.

public AptosRequestClient()

AptosRequestClient(TimeSpan)

Creates a request client with the specified per-request timeout.

public AptosRequestClient(TimeSpan httpTimeout)

Parameters

httpTimeout TimeSpan

Per-request timeout. Use InfiniteTimeSpan to disable.

Methods

Get<Res>(ClientRequest)

public override Task<ClientResponse<Res>> Get<Res>(ClientRequest request) where Res : class

Parameters

request ClientRequest

Returns

Task<ClientResponse<Res>>

Type Parameters

Res

Post<Res>(ClientRequest)

public override Task<ClientResponse<Res>> Post<Res>(ClientRequest request) where Res : class

Parameters

request ClientRequest

Returns

Task<ClientResponse<Res>>

Type Parameters

Res