Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ballinette committed May 29, 2020
1 parent dc10582 commit eae9f8a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/Agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class Agent {
host: configuration.hostname || configuration.host,
port: configuration.port || 80,
proxy,
tls: {},
};

// add optional tls options for https requests.
Expand Down
20 changes: 20 additions & 0 deletions src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,29 @@ export type ProxyConfigurationType = {|
+port: number,
|};

export type TlsConfigurationType = {|
+ca?: string,
+cert?: string,
+ciphers?: string,
+clientCertEngine?: string,
+crl?: string,
+dhparam?: string,
+ecdhCurve?: string,
+honorCipherOrder?: boolean,
+key?: string,
+passphrase?: string,
+pfx?: string,
+rejectUnauthorized?: boolean,
+secureOptions?: number,
+secureProtocol?: string,
+servername?: string,
+sessionIdContext?: string,
|};

export type ConnectionConfigurationType = {|
+host: string,
+port: number,
+tls?: TlsConfigurationType,
+proxy: ProxyConfigurationType,
|};

Expand Down

0 comments on commit eae9f8a

Please sign in to comment.