D2767: hgweb: document continuereader

2018-03-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7066617187c1: hgweb: document continuereader (authored by 
indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2767?vs=6811&id=6906

REVISION DETAIL
  https://phab.mercurial-scm.org/D2767

AFFECTED FILES
  mercurial/hgweb/common.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/common.py b/mercurial/hgweb/common.py
--- a/mercurial/hgweb/common.py
+++ b/mercurial/hgweb/common.py
@@ -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



To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2767: hgweb: document continuereader

2018-03-09 Thread indygreg (Gregory Szorc)
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2767

AFFECTED FILES
  mercurial/hgweb/common.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/common.py b/mercurial/hgweb/common.py
--- a/mercurial/hgweb/common.py
+++ b/mercurial/hgweb/common.py
@@ -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



To: indygreg, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel