aio-libs / aio-libs/aiohttp

Feature request: in the server, modifying the response headers after they have been sent should raise

未关闭
#3,231 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
16.5k
派生
2.4k
平均合并
20 小时 10 分钟
30 天内合并 PR
221

描述

Simple feature: I think after the response has been prepared (ie after the headers are sent back to the client), the `Response.headers` object should become a read-only dict (ie a `CIMultiDictProxy`), so that it cannot be modified.

Would you accept a patch doing this?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。