Skip to main content

Module request

Module request 

Source
Expand description

§HTTP Request Building and Execution

This module provides the internal HTTP request building and execution functionality for the Open Payments client. It handles both authenticated and unauthenticated requests, including HTTP message signature creation and content digest generation.

§Key Components

  • Generic HTTP request builder for constructing requests
  • Request builders for authenticated and unauthenticated operations
  • Internal request execution and signature handling

§Features

  • Automatic Signature Creation: Authenticated requests automatically include HTTP message signatures
  • Content Digest Generation: SHA-512 content digests for request bodies
  • GNAP Authorization: Support for Grant Negotiation and Authorization Protocol tokens
  • Error Handling: Comprehensive error handling for HTTP and signature operations