-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I am trying to consume an API which returns 303 status code and redirect location.
In ffhttp_Client.AbstractClientRequest.executeUnparsed() method the code checks for status code between 300 and 400 and throws exception with message
3xx Redirection error which is currently unhandled
With this behavior response along with its header is lost.
The two solutions in the current approach are
- override handleRedirection() method and throw an exception with redirect URI or do nothing in the overridden method (A dirty fix)
- Implement IAbstractClientRequest interface and implement all the methods(Lot of redundant code)
Is there a better way to handle this? maybe make executeUnparsed() method virtual?
Metadata
Metadata
Assignees
Labels
No labels