Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7044dd120ffbe50d6dfe53c63db85dd84fc54727
Ticket: 74bc0e44f5ec534d3c77fc8d78fd4cd08d3f9a0d
Documentation of http::unregister misses return value
User & Date: oehhar on 2016-09-22 14:02:40
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "29. http Package"
  15. title changed to:
    Documentation of http::unregister misses return value
    
  16. type changed to: "Bug"