UNPKG

@baqhub/sdk

Version:

The official JavaScript SDK for the BAQ federated app platform.

17 lines (16 loc) 646 B
import { HttpHeaders } from "../core/httpHeaders.js"; import { HttpMethod } from "../core/httpMethod.js"; import { HttpSignatureHeader } from "./httpSignatureHeader.js"; export interface HttpSignatureInput { authorizationId: string | undefined; method: string; pathAndQuery: string; host: string; port: number; headerValues: Map<`${HttpSignatureHeader}`, string>; } declare function signatureInputFromRequest(method: HttpMethod, url: string, headers: HttpHeaders, authorizationId: string | undefined): HttpSignatureInput; export declare const HttpSignatureInput: { new: typeof signatureInputFromRequest; }; export {};