fsprojects / FsHttp

A lightweight F# HTTP library by @SchlenkR and @dawedawe
https://fsprojects.github.io/FsHttp/
Apache License 2.0
424 stars 42 forks source link

automatic redirect #96

Closed jkone27 closed 2 years ago

jkone27 commented 2 years ago

idea, add a flag in CE to enable/disable automatic redirect


http {

   config_automaticRedirect false
}
SchlenkR commented 2 years ago

Is that meant to be a shortcut for the following code?

http {
    ...
    config_transformHttpClientHandler (fun handler ->
        handler.AllowAutoRedirect <- false
        handler
    )
}
jkone27 commented 2 years ago

I didnt know was so easy :) then a simple function should be fine