summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2020-08-24 14:28:22 (GMT)
committerkjnash <k.j.nash@usa.net>2020-08-24 14:28:22 (GMT)
commit06a30a3a2acfa22ae71c137e7abb28e61748f496 (patch)
treef20b8778d7210b3135666fc503df1caca50da885 /doc
parent120f36764644b094ad2b1fa55d66aac6c7cedb28 (diff)
downloadtcl-06a30a3a2acfa22ae71c137e7abb28e61748f496.zip
tcl-06a30a3a2acfa22ae71c137e7abb28e61748f496.tar.gz
tcl-06a30a3a2acfa22ae71c137e7abb28e61748f496.tar.bz2
Fix for http bug c2dc1da315. Add tests. Add detail about -handler to http(n). Bump version to 2.9.5.
Diffstat (limited to 'doc')
-rw-r--r--doc/http.n4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/http.n b/doc/http.n
index e8c8c90..26bf943 100644
--- a/doc/http.n
+++ b/doc/http.n
@@ -250,6 +250,10 @@ proc httpHandlerCallback {socket token} {
return $nbytes
}
.CE
+.PP
+The \fBhttp::geturl\fR code for the \fB-handler\fR option is not compatible with either compression or chunked transfer-encoding. If \fB-handler\fR is specified, then to work around these issues \fBhttp::geturl\fR will reduce the HTTP protocol to 1.0, and override the \fB-zip\fR option (i.e. it will not send the header "\fBAccept-Encoding: gzip,deflate,compress\fR").
+.PP
+If options \fB-handler\fR and \fB-channel\fR are used together, the handler is responsible for copying the data from the HTTP socket to the specified channel. The name of the channel is available to the handler as element \fB-channel\fR of the token array.
.RE
.TP
\fB\-headers\fR \fIkeyvaluelist\fR