Artifacts Associated With Ticket 2927221
Ticket change [f181d36297] (rid 109372) by dvrsn on 2010-01-06 22:44:10:
- assignee initialized to: "patthoyts"
- cmimetype initialized to: "text/plain"
- 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?)
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dvrsn"
- subsystem initialized to: "29. http Package"
- title initialized to: "provide helper function to get http headers"
- type initialized to: "RFE"
Ticket change [8609dc3efa] (rid 131438) by ferrieux on 2010-01-07 16:29:47:
- 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.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [7a73d4ade7] (rid 204054) by kjnash on 2022-09-10 11:57:24:
- closedate changed to: "2459832.9982009"
- closer changed to: "kjnash"
- 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?)
- 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.
- login: "kjnash"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"