github.com/nektos/act@v0.2.63/pkg/runner/testdata/actions/node12/node_modules/@actions/http-client/lib/auth.d.ts (about) 1 /// <reference types="node" /> 2 import * as http from 'http'; 3 import * as ifm from './interfaces'; 4 import { HttpClientResponse } from './index'; 5 export declare class BasicCredentialHandler implements ifm.RequestHandler { 6 username: string; 7 password: string; 8 constructor(username: string, password: string); 9 prepareRequest(options: http.RequestOptions): void; 10 canHandleAuthentication(): boolean; 11 handleAuthentication(): Promise<HttpClientResponse>; 12 } 13 export declare class BearerCredentialHandler implements ifm.RequestHandler { 14 token: string; 15 constructor(token: string); 16 prepareRequest(options: http.RequestOptions): void; 17 canHandleAuthentication(): boolean; 18 handleAuthentication(): Promise<HttpClientResponse>; 19 } 20 export declare class PersonalAccessTokenCredentialHandler implements ifm.RequestHandler { 21 token: string; 22 constructor(token: string); 23 prepareRequest(options: http.RequestOptions): void; 24 canHandleAuthentication(): boolean; 25 handleAuthentication(): Promise<HttpClientResponse>; 26 }