diff options
author | kjnash <k.j.nash@usa.net> | 2020-08-24 14:28:22 (GMT) |
---|---|---|
committer | kjnash <k.j.nash@usa.net> | 2020-08-24 14:28:22 (GMT) |
commit | 06a30a3a2acfa22ae71c137e7abb28e61748f496 (patch) | |
tree | f20b8778d7210b3135666fc503df1caca50da885 /doc | |
parent | 120f36764644b094ad2b1fa55d66aac6c7cedb28 (diff) | |
download | tcl-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.n | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |