@redocly/respect-core
Version:
API testing framework core
36 lines • 931 B
TypeScript
type DigestAuthType = {
username?: string;
password?: string;
method: string;
uri: string;
realm?: string;
nonce?: string;
opaque?: string;
qop?: string;
algorithm?: string;
nc?: string;
cnonce?: string;
};
type RequiredDigestAuthParams = {
username: string;
password: string;
realm: string;
nonce: string;
qop: string;
opaque: string;
uri: string;
method: string;
};
export declare function generateDigestAuthHeader({ username, password, nonce, realm, cnonce, algorithm, qop, nc, opaque, uri, method, bodyContent, }: DigestAuthType & {
uri: string;
method: string;
bodyContent?: string;
}): string;
export declare function generateResponse(data: RequiredDigestAuthParams & {
cnonce?: string;
algorithm?: string;
nc?: string;
bodyContent: string;
}): string;
export {};
//# sourceMappingURL=generate-digest-auth-header.d.ts.map