Certes
Show / Hide Table of Contents

Class AcmeHttpClient

HTTP client handling ACME operations.

Inheritance
object
AcmeHttpClient
Implements
IAcmeHttpClient
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Certes.Acme
Assembly: Certes.dll
Syntax
public class AcmeHttpClient : IAcmeHttpClient

Constructors

| Edit this page View Source

AcmeHttpClient(Uri, HttpClient)

Initializes a new instance of the AcmeHttpClient class.

Declaration
public AcmeHttpClient(Uri directoryUri, HttpClient http = null)
Parameters
Type Name Description
Uri directoryUri

The ACME directory URI.

HttpClient http

The HTTP.

Exceptions
Type Condition
ArgumentNullException

directoryUri

Methods

| Edit this page View Source

ConsumeNonce(CancellationToken)

Gets the nonce for next request.

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

The nonce.

| Edit this page View Source

Get<T>(Uri, CancellationToken)

Gets the specified URI.

Declaration
public 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>>
Type Parameters
Name Description
T
| Edit this page View Source

Post<T>(Uri, object, CancellationToken)

Posts the specified URI.

Declaration
public 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>>
Type Parameters
Name Description
T

Implements

IAcmeHttpClient

See Also

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