valyala/fasthttp

Add more functions to ease use of trailing headers

Open

#1,401 建立於 2022年10月20日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Go (21,741 star) (1,755 fork)batch import
feature requesthelp wanted

描述

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

貢獻者指南

Add more functions to ease use of trailing headers · valyala/fasthttp#1401 | Good First Issue