HTTPClient.Configuration.init parameter redirectConfiguration
inconsistently named and suboptimal type
#197
Labels
kind/enhancement
Improvements to existing feature.
Milestone
This is quite a minor issue but
redirectConfiguration
sticks out:When I'm initialising a
Configuration
, I know that I'd be configuring the redirect configuration. I think it should be calledredirects:
or something similar.Also, the type isn't great. It shouldn't be optional.
See Xcode's completion (which is accurate):
You'd expect that
.none
and.disallow
are the same but.none
secretly means "default" (which is not.disallow
). The parameter should be non-optional and default to a new value.default
.We should deprecate this
init
and also fix the other optional ones.The text was updated successfully, but these errors were encountered: