Skip to main content

DIDCommHttpTransport class

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Implementation of IDIDCommTransport to provide a simple transport based on HTTP(S) requests.

This API may change without a BREAKING CHANGE notice.

Signature:

export declare class DIDCommHttpTransport extends AbstractDIDCommTransport

Extends: AbstractDIDCommTransport

Constructors

Constructor

Modifiers

Description

(constructor)(httpMethod)

(BETA) Creates a new DIDCommHttpTransport.

Properties

Property

Modifiers

Type

Description

httpMethod

'post' | 'get'

(BETA) Defines the default HTTP method to use if not specified in the DID Document service entry of the recipient.

Methods

Method

Modifiers

Description

isServiceSupported(service)

(BETA) Returns true if this transport is suitable for the provided DID Document service section, otherwise false.

send(service, message)

(BETA) Sends the provided raw message (without further processing) to the service endpoint defined in the provided DID Document service section.