Skip to content

Add body cache middleware for reusable request bodies#3

Open
pawanrahul370-commits wants to merge 4 commits into
RoseMark45:mainfrom
pawanrahul370-commits:main
Open

Add body cache middleware for reusable request bodies#3
pawanrahul370-commits wants to merge 4 commits into
RoseMark45:mainfrom
pawanrahul370-commits:main

Conversation

@pawanrahul370-commits

Copy link
Copy Markdown

Fixes #1.

Summary:

  • Add BodyCache middleware that reads and restores request bodies for downstream handlers.
  • Support configurable maximum body size and helper restoration API.
  • Add tests covering JSON, XML, form bodies, empty bodies, repeated reads, and oversized payloads.

Validation:

  • go test ./...

/claim #1

@opirebot

opirebot Bot commented Jul 18, 2026

Copy link
Copy Markdown

😅 Unfortunately there are no rewards left to claim in this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🎯 Restore Request Body Stream After Context.Bind() to Prevent Downstream Body Exhaustion

1 participant