Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a73d4ade785ec6c008477f4c2a08e65f47a81b54771357b6c6268e3e730b66e
Ticket: 2927221fffffffffffffffffffffffffffffffff
provide helper function to get http headers
User & Date: kjnash on 2022-09-10 11:57:24
Changes

  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"