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