Skip to content
Tcl Source Code History Of Ticket 2927221fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2927221fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2927221fffffffffffffffffffffffffffffffff

  1. Ticket change [f181d36297] (rid 109372) by dvrsn on 2010-01-06 22:44:10:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The http package puts the response headers into the meta element of the state array exactly as they are received from the server.  If a program needs to get a specific well-known header (i.e., Location) they must search the meta array in a case-insensitive manner rather than just accessing the keys.  
      
      The requested feature is to provide a case-insensitive lookup into the meta array, either through a new helper function (::http::header) or by having http::meta take an optional key argument to return only the requested key instead of the entire array.  (::http::meta token ?key?)
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dvrsn"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to: "provide helper function to get http headers"
    12. type initialized to: "RFE"
  2. Ticket change [8609dc3efa] (rid 131438) by ferrieux on 2010-01-07 16:29:47:

    1. icomment:
      A new helper function ::http::header would indeed be the simplest, returning basically the same key-value list (isomorphous to a dict BTW) as ::meta but with [string tolower] applied to the keys.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  3. Ticket change [7a73d4ade7] (rid 204054) by kjnash on 2022-09-10 11:57:24:

    1. closedate changed to: "2459832.9982009"
    2. closer changed to: "kjnash"
    3. comment changed to:
      The http package puts the response headers into the meta element of the state array exactly as they are received from the server.  If a program needs to get a specific well-known header (i.e., Location) they must search the meta array in a case-insensitive manner rather than just accessing the keys.  
      
      The requested feature is to provide a case-insensitive lookup into the meta array, either through a new helper function (::http::header) or by having http::meta take an optional key argument to return only the requested key instead of the entire array.  (::http::meta token ?key?)
      
    4. icomment:
      Fixed in commit [31732edc8a], branch http-bugfixes-2022H2.
      
      N.B. the list of header names and values is not a dict because the same header name can be sent more than once.
      
    5. login: "kjnash"
    6. mimetype: "text/x-fossil-plain"
    7. resolution changed to: "Fixed"
    8. severity changed to: "Minor"
    9. status changed to: "Closed"