retryablehttp-go icon indicating copy to clipboard operation
retryablehttp-go copied to clipboard

Implement `Response` Wrapper

Open tarunKoyalwar opened this issue 2 years ago • 0 comments

Please describe your feature request:

  • Implement Response Wrapper similar to https://github.com/projectdiscovery/retryablehttp-go/blob/bbfecc2486fb5bda2bc0a52776a1447c68b6a190/request.go#L18
  • Auto Handle https://github.com/projectdiscovery/nuclei/issues/2314
  • Use ReusableResponseBody if requested
  • Drain method to Drain response body (to allow connection reuse)
  • DSLMap method that returns DSL variables of response

Describe the use case of this feature:

  • Abstract most common helper methods across all pd projects
  • Promote Connection Reuse if response body is not read
  • Auto Handle when content-length is -1

tarunKoyalwar avatar Jan 07 '23 13:01 tarunKoyalwar