Skip to content
Myr

Update README

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

authored by Tom Christie · committed by Tom Christie · parent 4fe2f69 · Browse files · 1 file+16 added−1 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+16 added−1 removed

  • other:+16 added−1 removed

1 file+16 added−1 removed

modified:README.md+16 added-1 removed
77 unmodified lines
78## API Reference7980#### `Client([ssl], [timeout], [pool_limits], [max_redirects])`8182*An HTTP client, with connection pooling, redirects, cookie persistence, etc.*8384```python85>>> client = Client()86>>> response = await client.get('https://example.org')87```8889* `async def .request(method, url, [content], [headers], [stream], [allow_redirects], [ssl], [timeout])`90* `async def .get(url, [headers], [stream], [allow_redirects], [ssl], [timeout])`91* `async def .options(url, [headers], [stream], [allow_redirects], [ssl], [timeout])`92* `async def .head(url, [headers], [stream], [allow_redirects], [ssl], [timeout])`
6 unmodified lines
99* `async def .close()`100101### Models102103*Data-structures for HTTP primitives...*104105#### `Response(...)`106107*An HTTP response.*108
22 unmodified lines
131*An HTTP request. Can be constructed explicitly for more control over exactly132what gets sent over the wire.*133134```python126>>> request = Request("GET", "http://example.org", headers={'host': 'example.org'})135>>> request = Request("GET", "https://example.org", headers={'host': 'example.org'})136>>> response = await client.send(request)137```138139* `.method` - **str** (Uppercased)
4 unmodified lines
144#### `URL(url, allow_relative=False)`145146*A normalized, IDNA supporting URL.*147148```python149>>> url = URL("https://example.org/")150>>> url.host151'example.org'152```153154* `.scheme` - **str**155* `.authority` - **str**156* `.host` - **str**157* `.port` - **int**
64 unmodified lines