Golang中,读取http request的body,只能读取一次
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- go
- Domain
- api, backend, networking
Research direction
The issue describes Go HTTP request bodies as single-read streams and mentions memory costs when copying them, but it names no files, tests, or entry points. Start by identifying the framework or request-handling code this should affect and clarify the intended repeated-read behavior; completion criteria are not specified.
Written by the indexing model from the issue text.
Description
Http Body是一个reader,一个读取流。
读取完就完了,意味着不能重复读取。
在一些框架上,想要重读解析是不行了。
如果需要,则需要复制流,但是这样一来,就凭空增加了内存的开销
- Dominant language
- No language data
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from axetroy/stackoverflow
-
IE 浏览器之 `import` 关键字OpenIE浏览器 浏览器兼容性
Difficulty 1/5 Under an hour Newbie friendliness 35/100
axetroy/stackoverflow#31 · 1 comment ·
-
后端开发
Difficulty 5/5 Over a week Newbie friendliness 20/100
axetroy/stackoverflow#30 ·
-
Git 命令的输出会输出到 stderrOpen其他
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
axetroy/stackoverflow#29 ·
-
后端开发
Difficulty 4/5 3-5 days Newbie friendliness 25/100
axetroy/stackoverflow#28 · 1 comment ·
-
移动端开发
Difficulty 5/5 Over a week Newbie friendliness 25/100
axetroy/stackoverflow#27 ·
All issues in axetroy/stackoverflow
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openzim/mwoffliner#2933 ·
Maintainers usually reply within 1 day
-
Use the README category name for website links and submissionsPossibly taken @dajiaohuang claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
birobirobiro/awesome-shadcn-ui#647 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Urigo/accounter-fullstack#4604 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
kagent-dev/tools#87 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
micronaut-projects/micronaut-core#13677 ·
Maintainers usually reply within 1 day