comparison mercurial/hgweb/common.py @ 36859: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 ffa3026d4196
children 7ad6a275316f
comparison
equal deleted inserted replaced
36858:e3f809e0fe8e 36859:7066617187c1
99 if headers is None: 99 if headers is None:
100 headers = [] 100 headers = []
101 self.headers = headers 101 self.headers = headers
102 102
103 class continuereader(object): 103 class continuereader(object):
104 """File object wrapper to handle HTTP 100-continue.
105
106 This is used by servers so they automatically handle Expect: 100-continue
107 request headers. On first read of the request body, the 100 Continue
108 response is sent. This should trigger the client into actually sending
109 the request body.
110 """
104 def __init__(self, f, write): 111 def __init__(self, f, write):
105 self.f = f 112 self.f = f
106 self._write = write 113 self._write = write
107 self.continued = False 114 self.continued = False
108 115