http - Download Stream with RestSharp and ResponseWriter -
i donwnload stream restsharp using responsewriter.
var client = new restclient var request = new restrequest(); // ... request.responsewriter = (ms) => { // how observe status code }; var response = client.execute(request);
how can found out http status code in responsewriter? there improve way download stream?
you can check response.statuscode , response.statusdescription after executing request.
interestingly, if utilize downloaddata method described here https://github.com/restsharp/restsharp/wiki/other-usage-examples there no way access info far can tell.
http stream http-status-codes restsharp
No comments:
Post a Comment