typed-rest-client
Version:
Node Rest and Http Clients for use with TypeScript
12 lines (11 loc) • 566 B
TypeScript
import ifm = require('../Interfaces');
export declare class BasicCredentialHandler implements ifm.IRequestHandler {
username: string;
password: string;
allowCrossOriginAuthentication: boolean;
origin: string;
constructor(username: string, password: string, allowCrossOriginAuthentication?: boolean);
prepareRequest(options: any): void;
canHandleAuthentication(response: ifm.IHttpClientResponse): boolean;
handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise<ifm.IHttpClientResponse>;
}