More explicit documentation of parameters to 'Response'

This commit is contained in:
Tom Christie 2018-06-25 14:55:03 +01:00
parent 0465eb1774
commit ec8c847a4e
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ Signature: `Response(content=b'', status_code=200, headers=None, media_type=None
* `headers` - A dictionary of strings or list of pairs of strings.
* `media_type` - A string giving the content type.
Starlette will automatically include a content-length header. It will also
set the content-type header, including a charset for text types.
```python
class App:
def __init__(self, scope):