github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/messaging/service/http/models.go (about)

     1  /*
     2   *
     3   * Copyright SecureKey Technologies Inc. All Rights Reserved.
     4   *
     5   * SPDX-License-Identifier: Apache-2.0
     6   * /
     7   *
     8   */
     9  
    10  package http
    11  
    12  // httpOverDIDCommMsg is incoming DIDComm message for http-over-didcomm message types
    13  // Reference:
    14  //  https://github.com/hyperledger/aries-rfcs/blob/master/features/0335-http-over-didcomm/README.md#message-format
    15  type httpOverDIDCommMsg struct {
    16  	ID          string `json:"@id"`
    17  	Method      string `json:"method"`
    18  	ResourceURI string `json:"resource-uri,omitempty"`
    19  	Version     string `json:"version"`
    20  	Headers     []struct {
    21  		Name  string `json:"name"`
    22  		Value string `json:"value"`
    23  	} `json:"headers"`
    24  	BodyB64 string `json:"body,omitempty"`
    25  }