-
-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/docker/buildx/issues/850
- Loading branch information
1 parent
0c43445
commit 39a7e19
Showing
4 changed files
with
36 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Ignore everything | ||
** | ||
|
||
!dist/*.whl | ||
!dist | ||
!README.md |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ tox==3.24.4 | |
mccabe==0.6.1 | ||
pylint==2.12.2 | ||
rope==0.22.0 | ||
httpx[http2] |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
proxy.py | ||
~~~~~~~~ | ||
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on | ||
Network monitoring, controls & Application development, testing, debugging. | ||
:copyright: (c) 2013-present by Abhinav Singh and contributors. | ||
:license: BSD, see LICENSE for more details. | ||
""" | ||
import httpx | ||
|
||
from proxy import TestCase | ||
|
||
|
||
class TestHttp2WithProxy(TestCase): | ||
|
||
def test_http2_via_proxy(self) -> None: | ||
assert self.PROXY | ||
response = httpx.get( | ||
'https://httpbin.org/get', | ||
headers={'accept': 'application/json'}, | ||
verify=httpx.create_ssl_context(http2=True), | ||
timeout=httpx.Timeout(timeout=5.0), | ||
proxies={ | ||
'all://': 'http://localhost:%d' % self.PROXY.flags.port, | ||
}, | ||
) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
# def test_http2_streams_over_proxy_keep_alive_connection(self) -> None: | ||
# pass |