kaven-utils
Version:
Utils for Node.js.
24 lines (23 loc) • 1.09 kB
TypeScript
/********************************************************************
* @author: Kaven
* @email: kaven@wuwenkai.com
* @website: http://blog.kaven.xyz
* @file: [Kaven-Utils] /src/net/authentication/KavenBasicAuthentication.ts
* @create: 2019-03-26 13:54:54.865
* @modify: 2025-10-14 22:58:04.870
* @version: 6.1.0
* @times: 35
* @lines: 78
* @copyright: Copyright © 2019-2025 Kaven. All Rights Reserved.
* @description: [description]
* @license: [license]
********************************************************************/
import { IHttpAuthorizationInfo } from "../../base/Interfaces.js";
import { HttpResponseMessage } from "../http/HttpResponseMessage.js";
import { KavenAuthentication } from "./KavenAuthentication.js";
export declare class KavenBasicAuthentication extends KavenAuthentication {
Name: string;
Authenticate(req: IHttpAuthorizationInfo): Promise<boolean>;
Update(response: HttpResponseMessage): HttpResponseMessage;
static CreateHeader(username: string, password: string): string;
}