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
HttpResponseMessage Response in RequestResult marked as Obsolete #1059
Comments
Hey @Pedro-Monteiro-1211076, sorry it took so long to respond, I meant to get back to you right away. Thanks for pointing this out! I can see how it'd be useful to have the status code here, I'll make sure it gets added to the |
Hello @nozzlegear, no worries. Thanks for considering my suggestion and implementing it! Do you have an estimate of when you will publish the next release? |
Planning to release it today (Monday)! I've got a new request execution policy I'm cooking up that I'd like to release as well, just need to finish up the tests for that and then I'll push out a release for both of them. |
@Pedro-Monteiro-1211076 A couple days late, but this is now published in 6.16.0 on Nuget. You should be able to access the status code with |
Hey @nozzlegear, I have updated the Nuget and everything seems to be working fine. Thank you very much. |
I am logging HTTP requests and responses by creating an IRequestExecutionPolicy. Below is a simplified version of my class without the logging:
I have no problem logging the request.
To log the response I use the result variable which is of the type RequestResult. This class has the attribute HttpResponseMessage Response which is perfect to log the response (I just need the status code). However, it is marked as Obsolete and I am wondering what should I use instead to obtain the status code.
The text was updated successfully, but these errors were encountered: