@sphereon/did-auth-siop
Version:
Self Issued OpenID V2 (SIOPv2) and OpenID 4 Verifiable Presentations (OID4VP)
25 lines • 1.09 kB
TypeScript
import { ContentType, SIOPResonse } from '../types';
export declare const getJson: <T>(URL: string, opts?: {
bearerToken?: string;
contentType?: string | ContentType;
accept?: string;
customHeaders?: HeadersInit;
exceptionOnHttpErrorStatus?: boolean;
}) => Promise<SIOPResonse<T>>;
export declare const formPost: <T>(url: string, body: BodyInit, opts?: {
bearerToken?: string;
contentType?: string | ContentType;
accept?: string;
customHeaders?: HeadersInit;
exceptionOnHttpErrorStatus?: boolean;
}) => Promise<SIOPResonse<T>>;
export declare const post: <T>(url: string, body?: BodyInit, opts?: {
bearerToken?: string;
contentType?: string | ContentType;
accept?: string;
customHeaders?: HeadersInit;
exceptionOnHttpErrorStatus?: boolean;
}) => Promise<SIOPResonse<T>>;
export declare const getWithUrl: <T>(url: string, textResponse?: boolean) => Promise<T>;
export declare const fetchByReferenceOrUseByValue: <T>(referenceURI: string, valueObject: T, textResponse?: boolean) => Promise<T>;
//# sourceMappingURL=HttpUtils.d.ts.map