Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request body: re-init raw request's body after reading-for-decode #1156

Open
rom8726 opened this issue Jan 11, 2024 · 0 comments
Open

Request body: re-init raw request's body after reading-for-decode #1156

rom8726 opened this issue Jan 11, 2024 · 0 comments
Labels
enhancement New feature or request openapi-features OpenAPI features support issues

Comments

@rom8726
Copy link

rom8726 commented Jan 11, 2024

Description

Hi! It seems to me very important to reinitialize the raw http request body (req.Raw.Body). The developer should be able to read the raw contents of the request body. This is necessary, for example, for logging raw requests or for the task of verifying the authenticity of a request, when a signature (arrives in the header) generated cryptographically based on the request body and secret key, and the signature must be verified in the request handler.

References

@rom8726 rom8726 added enhancement New feature or request openapi-features OpenAPI features support issues labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-features OpenAPI features support issues
Projects
None yet
Development

No branches or pull requests

1 participant