mirror of
https://github.com/ASzc/change-string-case-action.git
synced 2024-11-24 04:53:51 +08:00
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
|
/// <reference types="node" />
|
||
|
import * as http from 'http';
|
||
|
import * as ifm from './interfaces';
|
||
|
import { HttpClientResponse } from './index';
|
||
|
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>;
|
||
|
}
|