valyala/fasthttp

Add more functions to ease use of trailing headers

Open

#1,401 创建于 2022年10月20日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (1,755 fork)batch import
feature requesthelp wanted

仓库指标

Star
 (21,741 star)
PR 合并指标
 (平均合并 3天) (30 天内合并 44 个 PR)

描述

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

贡献者指南