From ec8c847a4e3256a0b37648de82d420b68b9a1f83 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 25 Jun 2018 14:55:03 +0100 Subject: [PATCH] More explicit documentation of parameters to 'Response' --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index af74c71d..d9dac13a 100644 --- 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):