1. 29 Mar, 2024 6 commits
    • Dridi Boukelmoune's avatar
      http2_hpack: Also rewrite h2h_checkhdr() for clarity · f48df12d
      Dridi Boukelmoune authored
      It does a first pass on header names and values, and only logs errors,
      so the signature is updated accordingly and the call site is moved into
      h2h_addhdr().
      f48df12d
    • Dridi Boukelmoune's avatar
      http2_hpack: Remove one level of nesting · 7b6f5b3a
      Dridi Boukelmoune authored
      Better diff with the --ignore-all-space option.
      7b6f5b3a
    • Dridi Boukelmoune's avatar
      http2_hpack: Refuse multiple :authority pseudo headers · 3b0d8adc
      Dridi Boukelmoune authored
      It became explicit in rfc9113:
      
      > The same pseudo-header field name MUST NOT appear more than once in a
      > field block.
      
      While at it, the duplicate pseudo-header error can be consolidated in a
      single location instead of adding one more branch.
      3b0d8adc
    • Dridi Boukelmoune's avatar
      http2_hpack: Reorganize header addition for clarity · 0617b289
      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.
      0617b289
    • Dridi Boukelmoune's avatar
      txt: New macros to work with strings · 6e9f9af5
      Dridi Boukelmoune authored
      6e9f9af5
    • Dridi Boukelmoune's avatar
      vtc_http2: Print headers as "name: value" · fac5c6c0
      Dridi Boukelmoune authored
      The extra space before the colon looked uncanny. The rest is just code
      indentation improvements.
      
      Better diff with the --ignore-all-space --word-diff options.
      fac5c6c0
  2. 25 Mar, 2024 1 commit
  3. 18 Mar, 2024 24 commits
  4. 15 Mar, 2024 9 commits