• Dridi Boukelmoune's avatar
    http2_hpack: Reorganize header addition for clarity · b7bc7f56
    Dridi Boukelmoune authored
    Instead of passing both a decoder and individual decoder fields, the
    signature for h2h_addhdr() changed to only take the decoder. The order
    of parameters is destination first, then the source following the
    calling conventon of functions like memcpy().
    
    Internally the function is reorganized with a bunch of txt variables to
    keep track of the header being added, its name and value. In addition to
    clarity, this also helps improve safety and correctness.
    
    For example the :authority pseudo-header name is erased in place to turn
    it into a regular host header, but having a dedicated txt for the header
    name allows its preservation.
    b7bc7f56
Name
Last commit
Last update
..
cache_http2.h Loading commit data...
cache_http2_deliver.c Loading commit data...
cache_http2_hpack.c Loading commit data...
cache_http2_panic.c Loading commit data...
cache_http2_proto.c Loading commit data...
cache_http2_send.c Loading commit data...
cache_http2_session.c Loading commit data...