requests icon indicating copy to clipboard operation
requests copied to clipboard

feat(handler): implement duplicate read closer for request body

Open ch3nnn opened this issue 7 months ago • 3 comments

This change introduces a utility function dupReadCloser that allows duplicating the incoming request body reader. It is now used in the request handling loop to ensure that the request body can be consumed by multiple handlers or middleware without losing the original data.

ch3nnn avatar Jul 22 '24 18:07 ch3nnn