Improve authentication handling (#908)
This commit is contained in:
committed by
GitHub
parent
24e674469e
commit
0ebbd71e9a
2
lib/Connection.d.ts
vendored
2
lib/Connection.d.ts
vendored
@ -21,6 +21,7 @@
|
||||
|
||||
import { URL } from 'url';
|
||||
import { inspect, InspectOptions } from 'util';
|
||||
import { ApiKeyAuth, BasicAuth } from './ConnectionPool'
|
||||
import * as http from 'http';
|
||||
import { ConnectionOptions as TlsConnectionOptions } from 'tls';
|
||||
|
||||
@ -34,6 +35,7 @@ interface ConnectionOptions {
|
||||
agent?: AgentOptions | agentFn;
|
||||
status?: string;
|
||||
roles?: any;
|
||||
auth?: BasicAuth | ApiKeyAuth;
|
||||
}
|
||||
|
||||
interface RequestOptions extends http.ClientRequestArgs {
|
||||
|
||||
Reference in New Issue
Block a user