Overview
| Artifact ID: | 7044dd120ffbe50d6dfe53c63db85dd84fc54727 |
|---|---|
| Ticket: | 74bc0e44f5ec534d3c77fc8d78fd4cd08d3f9a0d
Documentation of http::unregister misses return value |
| User & Date: | oehhar on 2016-09-22 14:02:40 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
<h1>Documentation of return value of http::unregister missing</h1> The command 'http::unregister' returns a list of Port and Command used in a former 'http::register'. This is not documented. <h1>Documentation missing: error raised if http::unregister is called without registration</h1> The command 'http::unregister' raises an error, if the protocol was not registered. This is not documented. <h1>Use case </h1> I was looking for a possibility to find out, if a 'http::register https <cmd>' was already called. This is possible with the upper information: <verbatim> if {[catch { http::unregister https } lPortCmd]} { # not registered -> register on my own } else { # Ok, was registered - reregister http::register https {*}$lPortCmd } </verbatim> I want to use this code in tclws to preserve an already registered handler. Thank you, Harald - foundin changed to: "8.6.6"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "29. http Package"
- title changed to:
Documentation of http::unregister misses return value
- type changed to: "Bug"