Skip to content
Myr

Update README.md

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent c12c271 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:README.md+2 added-2 removed
59 unmodified lines
60>>> import httpcore61>>> client = httpcore.AsyncClient()62>>> response = await client.get('https://example.com')63>>> response.status_code64<HTTPStatus.OK: 200>64<StatusCode.OK: 200>65>>> response.protocol66'HTTP/2'67>>> response.text68'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>\n...'
45 unmodified lines
114115*An HTTP response.*116117* `def __init__(...)`118* `.status_code` - **int**118* `.status_code` - **int** (Usually an instance of the `StatusCode` IntEnum.)119* `.reason_phrase` - **str**120* `.protocol` - `"HTTP/2"` or `"HTTP/1.1"`121* `.url` - **URL**122* `.headers` - **Headers**
128 unmodified lines