• 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
.circleci Loading commit data...
.github Loading commit data...
bin Loading commit data...
contrib Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
vmod Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...
vsc.am Loading commit data...
vtc.am Loading commit data...
wflags.py Loading commit data...