haskell-servant / haskell-servant/servant
Question : How to handle a 'raw' follow up url through servant client
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
Hello, sorry to ask this question here if that is not the purpose, was not very clear where it should be done, but let me know if it is better asked elsewhere.
I am consuming an API of which I have no control through servant client.
The api works by returning a 202 on a POST with inside the response headers a url where to ask for the real result of the action, success or failure, sort of async basically. This is currently modelled on my side as a String header, the string containing a url (with query parameters and all).
I was wondering whether I could try to consume this through servant as well, as I can then keep on using the authentication info and maybe even describe the json that should be returned in the same way as the other calls.
Or is that not possible and is it better to drop to a lower level library, like maybe http-client?
Contributor guide
Assessment
This issue has not been assessed yet.