Certes
Show / Hide Table of Contents

Interface IAcmeHttpClient

Supports HTTP operations for ACME servers.

Namespace: Certes.Acme
Assembly: Certes.dll
Syntax
public interface IAcmeHttpClient

Methods

| Edit this page View Source

ConsumeNonce(CancellationToken)

Gets the nonce for next request.

Declaration
Task<string> ConsumeNonce(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

Cancels nonce acquisition.

Returns
Type Description
Task<string>

The nonce.

| Edit this page View Source

Get<T>(Uri, CancellationToken)

Gets the data from specified URI.

Declaration
Task<AcmeHttpResponse<T>> Get<T>(Uri uri, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Uri uri

The URI.

CancellationToken cancellationToken

Cancels this operation.

Returns
Type Description
Task<AcmeHttpResponse<T>>

The response from ACME server.

Type Parameters
Name Description
T

The type of expected result

| Edit this page View Source

Post<T>(Uri, object, CancellationToken)

Posts the data to the specified URI.

Declaration
Task<AcmeHttpResponse<T>> Post<T>(Uri uri, object payload, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Uri uri

The URI.

object payload

The payload.

CancellationToken cancellationToken

Cancels this operation.

Returns
Type Description
Task<AcmeHttpResponse<T>>

The response from ACME server.

Type Parameters
Name Description
T

The type of expected result

  • Edit this page
  • View Source
© 2018 Certes Project
Back to top