valyala/fasthttp

Add more functions to ease use of trailing headers

Offen

#1.401 geöffnet am 20.10.2022

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (1.755 Forks)batch import
feature requesthelp wanted

Repository-Metriken

Stars
 (21.741 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 3T) (44 gemergte PRs in 30 T)

Beschreibung

It is great that recent versions of fasthttp have trailer support, but it is more difficult and awkward to use. We should have minimal features like so:

  • PeekTrailer
  • PeekAllTrailer see #1394

It is tricky because SetTrailer isn't setting for a single value, rather all values. It would be nicer to have parity for apis to set/add and del, as well.

See https://github.com/mosn/pkg/issues/66

Contributor Guide