diff options
author | kjnash <k.j.nash@usa.net> | 2018-04-20 20:06:30 (GMT) |
---|---|---|
committer | kjnash <k.j.nash@usa.net> | 2018-04-20 20:06:30 (GMT) |
commit | 3771e638b05a4c75d1222ee7653e01cd2289643e (patch) | |
tree | 3e99672ec8a9790bc8205a6901b3930f7ef3cda7 /doc/http.n | |
parent | 4588d7300e53e7403a693eedb0d10d54efccb972 (diff) | |
download | tcl-3771e638b05a4c75d1222ee7653e01cd2289643e.zip tcl-3771e638b05a4c75d1222ee7653e01cd2289643e.tar.gz tcl-3771e638b05a4c75d1222ee7653e01cd2289643e.tar.bz2 |
Document the new proc http::registerError in http.n
Diffstat (limited to 'doc/http.n')
-rw-r--r-- | doc/http.n | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -44,6 +44,8 @@ http \- Client-side implementation of the HTTP/1.1 protocol .sp \fB::http::register \fIproto port command\fR .sp +\fB::http::registerError \fIport\fR ?\fImessage\fR? +.sp \fB::http::unregister \fIproto\fR .BE .SH DESCRIPTION @@ -454,6 +456,17 @@ set token [::http::geturl https://my.secure.site/] .CE .RE .TP +\fB::http::registerError\fR \fIport\fR ?\fImessage\fR? +. +This procedure allows a registered protocol handler to deliver an error +message for use by \fBhttp\fR. Calling this command does not raise an +error. The command is useful when a registered protocol detects an problem +(for example, an invalid TLS certificate) that will cause an error to +propagate to \fBhttp\fR. The command allows \fBhttp\fR to provide a +precise error message rather than a general one. The command returns the +value provided by the last call with argument \fImessage\fR, or the empty +string if no such call has been made. +.TP \fB::http::unregister\fR \fIproto\fR . This procedure unregisters a protocol handler that was previously |