-
Notifications
You must be signed in to change notification settings - Fork 31
/
digest-fetch-src.d.ts
35 lines (35 loc) · 1.01 KB
/
digest-fetch-src.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export class DigestClient {
static parse(...args: any[]): string;
constructor(user: any, password: any, options?: {});
user: any;
hashFunc: any;
password: any;
nonceRaw: string;
logger: any;
precomputedHash: any;
digest: {
nc: number;
algorithm: any;
realm: string;
};
hasAuth: boolean;
cnonceSize: number;
statusCode: any;
basic: any;
getClient(): Promise<typeof fetch | typeof import("node-fetch").default>;
_client: typeof import("node-fetch").default;
fetch(url: any, options?: {}): Promise<Response | import("node-fetch").Response>;
addBasicAuth(options?: {}): {
headers: {
Authorization: string;
};
};
computeHash(user: any, realm: any, password: any): any;
hashWithAlgorithm(data: any): any;
addAuth(url: any, options: any): any;
parseAuth(h: any): void;
lastAuth: any;
parseQop(rawAuth: any): "auth" | "auth-int";
makeNonce(): string;
}
export default DigestClient;