]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
More explicit documentation of parameters to 'Response'
authorTom Christie <tom@tomchristie.com>
Mon, 25 Jun 2018 13:55:03 +0000 (14:55 +0100)
committerTom Christie <tom@tomchristie.com>
Mon, 25 Jun 2018 13:55:03 +0000 (14:55 +0100)
README.md

index af74c71d81e0eefedc19276fae567de05167648a..d9dac13ad77cf61dd09b33b0ff8332120248ca3f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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):