zio-http icon indicating copy to clipboard operation
zio-http copied to clipboard

Supporting automatic redirects

Open omidb opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Yes, almost all HTTP clients support redirecting when the error is 301, 302 and use Location field to go to the next address. WGET does this automatically and CURL has "-L --max-redirs 5"

Describe the solution you'd like ZClient should do this automatically and it should have a parameter for max retries

Describe alternatives you've considered writing a wrapper around this myself or use other http client like sttp with zio backend

Additional context

omidb avatar Nov 01 '23 19:11 omidb