2022-10-21 16:52:45 +02:00
|
|
|
import * as http from 'http';
|
2026-01-30 13:31:20 +01:00
|
|
|
import * as ifm from './interfaces.js';
|
|
|
|
|
import { HttpClientResponse } from './index.js';
|
2022-10-21 16:52:45 +02:00
|
|
|
export declare class BasicCredentialHandler implements ifm.RequestHandler {
|
|
|
|
|
username: string;
|
|
|
|
|
password: string;
|
|
|
|
|
constructor(username: string, password: string);
|
|
|
|
|
prepareRequest(options: http.RequestOptions): void;
|
|
|
|
|
canHandleAuthentication(): boolean;
|
|
|
|
|
handleAuthentication(): Promise<HttpClientResponse>;
|
|
|
|
|
}
|
|
|
|
|
export declare class BearerCredentialHandler implements ifm.RequestHandler {
|
|
|
|
|
token: string;
|
|
|
|
|
constructor(token: string);
|
|
|
|
|
prepareRequest(options: http.RequestOptions): void;
|
|
|
|
|
canHandleAuthentication(): boolean;
|
|
|
|
|
handleAuthentication(): Promise<HttpClientResponse>;
|
|
|
|
|
}
|
|
|
|
|
export declare class PersonalAccessTokenCredentialHandler implements ifm.RequestHandler {
|
|
|
|
|
token: string;
|
|
|
|
|
constructor(token: string);
|
|
|
|
|
prepareRequest(options: http.RequestOptions): void;
|
|
|
|
|
canHandleAuthentication(): boolean;
|
|
|
|
|
handleAuthentication(): Promise<HttpClientResponse>;
|
|
|
|
|
}
|