Add query_params to URL and Request constructors

This commit is contained in:
Tom Christie 2019-05-08 13:02:32 +01:00
parent 3de0425ef2
commit 61654591d1

View File

@ -134,7 +134,7 @@ what gets sent over the wire.*
>>> response = await client.send(request)
```
* `def __init__(method, url, content, headers)`
* `def __init__(method, url, query_params, content, headers)`
* `.method` - **str** (Uppercased)
* `.url` - **URL**
* `.content` - **byte** or **byte async iterator**
@ -150,7 +150,7 @@ what gets sent over the wire.*
'example.org'
```
* `def __init__(url, allow_relative=False)`
* `def __init__(url, allow_relative=False, query_params=None)`
* `.scheme` - **str**
* `.authority` - **str**
* `.host` - **str**