Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transport API as plain request -> response method. #1840

Merged
merged 9 commits into from
Sep 13, 2021

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Sep 7, 2021

Exploration.

Switches the Transport API from...

(status_code, headers, stream, extensions) = transport.handle_request(method, url, headers, stream, extensions)

To...

response = transport.handle_request(request)

@tomchristie tomchristie changed the title Transport API as plain r`equest -> response Transport API as plain request -> response method. Sep 7, 2021
@tomchristie tomchristie merged commit ff9813e into master Sep 13, 2021
@tomchristie tomchristie deleted the transport-api-as-request-response branch September 13, 2021 12:34
toppk added a commit to toppk/httpx that referenced this pull request Feb 5, 2022
tomchristie added a commit that referenced this pull request Feb 8, 2022
)

* update docstring/docs for transport based on pull #1840

* Update httpx/_transports/base.py

* lint'd

Co-authored-by: Tom Christie <tom@tomchristie.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant