requests
requests copied to clipboard
feat(handler): implement duplicate read closer for request body
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.