compatibility.md
This file
Path
docs/compatibility.md
20 lines · 850 bytes · Markdown
Last changed by
Tweak compat docsTom Christiebefore adoptionfdc4ab2
History of this fileTake it
compatibility.md
Requests Compatibility Guide
HTTP3 aims to be compatible with the requests API wherever possible.
This documentation outlines places where the API differs...
QuickStart
Pretty much all the API mentioned in the requests QuickStart should be identical
to the API in our own documentation. The following exceptions apply:
Response.url- Returns aURLinstance, rather than a string. Usestr(response.url)if you need a string instance.http3.codes- In our documentation we prefer the uppercased versions, such ascodes.NOT_FOUND, but also provide lower-cased versions for API compatibility withrequests.stream=True. - Streaming responses provide the.stream()and.raw()byte iterator interfaces, rather than the.iter_content()method and the.rawsocket interface.
Advanced Usage
!!! warning TODO