-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: pass headers for async request definitions
- Loading branch information
Showing
4 changed files
with
78 additions
and
6 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
48 changes: 48 additions & 0 deletions
48
tests/integration/cassettes/test_httpbin/test_headers_async.yaml
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,48 @@ | ||
interactions: | ||
- request: | ||
body: '{}' | ||
headers: | ||
accept: | ||
- '*/*' | ||
accept-encoding: | ||
- gzip, deflate | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '2' | ||
content-type: | ||
- application/json | ||
host: | ||
- httpbin.org | ||
user-agent: | ||
- python-httpx/0.23.3 | ||
x-bar: | ||
- barval | ||
x-foo: | ||
- fooval | ||
method: GET | ||
uri: https://httpbin.org/headers | ||
response: | ||
content: "{\n \"headers\": {\n \"Accept\": \"*/*\", \n \"Accept-Encoding\": | ||
\"gzip, deflate\", \n \"Content-Length\": \"2\", \n \"Content-Type\": | ||
\"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": | ||
\"python-httpx/0.23.3\", \n \"X-Amzn-Trace-Id\": \"Root=1-643d0f74-258491ed49f5affd6aa5cd03\", | ||
\n \"X-Bar\": \"barval\", \n \"X-Foo\": \"fooval\"\n }\n}\n" | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '339' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Mon, 17 Apr 2023 09:20:56 GMT | ||
Server: | ||
- gunicorn/19.9.0 | ||
http_version: HTTP/1.1 | ||
status_code: 200 | ||
version: 1 |
File renamed without changes.
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