-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PECO-1042] Add proxy support (#193)
* Introduce client context Signed-off-by: Levko Kravets <levko.ne@gmail.com> * Pass context to all relevant classes Signed-off-by: Levko Kravets <levko.ne@gmail.com> * Make driver a part of context Signed-off-by: Levko Kravets <levko.ne@gmail.com> * Fix tests Signed-off-by: Levko Kravets <levko.ne@gmail.com> * [PECO-1042] Add proxy support Signed-off-by: Levko Kravets <levko.ne@gmail.com> * Tidy up code a bit Signed-off-by: Levko Kravets <levko.ne@gmail.com> * Tidy up code a bit Signed-off-by: Levko Kravets <levko.ne@gmail.com> --------- Signed-off-by: Levko Kravets <levko.ne@gmail.com>
- Loading branch information
1 parent
9eb3807
commit fd36b2e
Showing
12 changed files
with
621 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import http from 'http'; | ||
import { HeadersInit } from 'node-fetch'; | ||
|
||
export default interface IConnectionProvider { | ||
getThriftConnection(): Promise<any>; | ||
|
||
getAgent(): Promise<http.Agent>; | ||
|
||
setHeaders(headers: HeadersInit): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.