Mercurial > hg
changeset 36853:7066617187c1
hgweb: document continuereader
Differential Revision: https://phab.mercurial-scm.org/D2767
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 10 Mar 2018 10:47:30 -0800 |
parents | e3f809e0fe8e |
children | 290fc4c3d1e0 |
files | mercurial/hgweb/common.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Thu Mar 08 18:00:04 2018 -0800 +++ b/mercurial/hgweb/common.py Sat Mar 10 10:47:30 2018 -0800 @@ -101,6 +101,13 @@ self.headers = headers class continuereader(object): + """File object wrapper to handle HTTP 100-continue. + + This is used by servers so they automatically handle Expect: 100-continue + request headers. On first read of the request body, the 100 Continue + response is sent. This should trigger the client into actually sending + the request body. + """ def __init__(self, f, write): self.f = f self._write = write