Transport.http
HTTP server-side transport
HTTP transport for server-side payment handling.
Usage
import { , , } from 'mppx/server'
const = .({
: [.()],
: .(),
})Behavior
- Reads Credentials from the
Authorizationheader - Issues Challenges in the
WWW-Authenticateheader with402status - Attaches Receipts in the
Payment-Receiptheader
Return type
type ReturnType = Transport<Request, Response>