Skip to content
Myr

Add query_params to URL and Request constructors

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 3de0425 · 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
132 unmodified lines
133>>> request = Request("GET", "https://example.org", headers={'host': 'example.org'})134>>> response = await client.send(request)135```136137* `def __init__(method, url, content, headers)`137* `def __init__(method, url, query_params, content, headers)`138* `.method` - **str** (Uppercased)139* `.url` - **URL**140* `.content` - **byte** or **byte async iterator**141* `.headers` - **Headers**
7 unmodified lines
149>>> url.host150'example.org'151```152153* `def __init__(url, allow_relative=False)`153* `def __init__(url, allow_relative=False, query_params=None)`154* `.scheme` - **str**155* `.authority` - **str**156* `.host` - **str**157* `.port` - **int**
67 unmodified lines