valyala/fasthttp

Add more functions to ease use of trailing headers

Open

Aperta il 20 ott 2022

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Go (21.741 star) (1755 fork)batch import
feature requesthelp wanted

Descrizione

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

Guida contributor