-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
how to access status code in fail handler #465
Comments
Looks like this isn't possible right now. I've added some methods to connection that should make it possible:
|
get_status() is wrong (. instead of ->), it has to be
and perhaps it should be named "get_http_status_code"? |
Just pushed another update (b6817e4) that fixes these issues, names the methods get_response_code and get_response_msg to be more consistent with the other methods of this sort. Also adds some tests that actually use these methods to make sure they actually work =) |
works thank you. |
Hi,
I havent found out yet how to access the http response code in a client fail handler.
Example: I try to connect to a wrong url:
the last line is the fail handler
How do I get the "404" error code in the fail handler, since I dont have access to m_response
The text was updated successfully, but these errors were encountered: