Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: checking response codes in RunClient? #28

Open
jsoo1 opened this issue Nov 26, 2019 · 2 comments
Open

Question: checking response codes in RunClient? #28

jsoo1 opened this issue Nov 26, 2019 · 2 comments

Comments

@jsoo1
Copy link

jsoo1 commented Nov 26, 2019

Hi I just picked up your library, it’s really nice! I was wondering how I can do some extra parsing of a response if I know i can expect some body given a certain status code. I know I can work around it outside of RunClient, so no problem if there’s no solution. Thanks again!

@epicallan
Copy link
Owner

Hi, I am glad you like the library. :)

To your question, there is currently no straight forward solution at the moment. I would need to provide some new combinator for making it easier to write custom HasResponse class instances for such cases. I will explore it over the weekend.

@jsoo1
Copy link
Author

jsoo1 commented Dec 2, 2019

Thank you very much! Good luck and I'll keep an eye out for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants