UNPKG

kaven-utils

Version:

Utils for Node.js.

24 lines (23 loc) 1.09 kB
/******************************************************************** * @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: 2023-12-07 17:36:42.385 * @version: 5.4.0 * @times: 31 * @lines: 78 * @copyright: Copyright © 2019-2023 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; }