Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/digest_fetch/mod.ts>DigestClient

digest auth request plugin for fetch/node-fetch
Latest
class DigestClient
import { DigestClient } from "https://deno.land/x/digest_fetch@v1.2.1/mod.ts";

Constructors

new
DigestClient(
user: string,
password: string,
options?: { logger?: Logger; precomputedHash?: boolean; algorithm?: "MD5" | "MD5-sess"; basic?: boolean; statusCode?: number; cnonceSize?: string; },
)

Properties

basic: boolean
cnonceSize: number
digest: { nc: number; algorithm: "MD5" | "MD5-sess"; realm: string; nonce?: string; cnonce?: string; qop?: string | null; opaque?: string | null; scheme?: string; }
hasAuth: boolean
lastAuth: string | null
optional
logger: Logger
precomputedHash: boolean
optional
statusCode: number

Methods

addAuth(url: string | Request, options: RequestOptions): RequestInit
addBasicAuth(options?: RequestOptions): RequestInit
fetch(url: string, options?: RequestInit)
parseAuth(h: string | null)
parseQop(rawAuth: string)

Static Methods

computeHash(
user: string,
realm: string,
password: string,
)