valyala/fasthttp

Add more functions to ease use of trailing headers

Open

#1401 aperta il 20 ott 2022

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

Metriche repository

Star
 (21.741 star)
Metriche merge PR
 (Merge medio 3g) (44 PR mergiate in 30 g)

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