aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/@actions/http-client/lib/auth.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@actions/http-client/lib/auth.d.ts')
-rw-r--r--node_modules/@actions/http-client/lib/auth.d.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/node_modules/@actions/http-client/lib/auth.d.ts b/node_modules/@actions/http-client/lib/auth.d.ts
new file mode 100644
index 0000000..8cc9fc3
--- /dev/null
+++ b/node_modules/@actions/http-client/lib/auth.d.ts
@@ -0,0 +1,26 @@
+/// <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>;
+}