Tiny.RestClient v1.7.1 Release Notes
Release Date: 2020-05-29 // over 4 years agoPrevious changes from v1.7.0
-
- โ Add possibility for request with content (like POST, PUT ...) to use methods : WithBasicAuthentication WithOAuthBearer WithTimeout WithETagContainer.
- ๐ Allow non 2xx response (see sample below)
๐ Allow non http 2xx responses
Globaly
๐ Allow any status codes :
client.Settings.HttpStatusCodeAllowed.AllowAnyStatus = true;
๐ Allow only a range of http status codes :
client.Settings.HttpStatusCodeAllowed.Add(new HttpStatusRange(400, 420));
or
client.Settings.HttpStatusCodeAllowed.Add(new HttpStatusRange(System.Net.HttpStatusCode.BadRequest, System.Net.HttpStatusCode.BadGateway));
By request
๐ Allow all status code :
request.AllowAllHttpStatusCode().ExecuteAsync();
๐ Allow only a range of http status codes :
request.AllowRangeHttpStatusCode(400, 420).ExecuteAsync();
๐ Allow only on stats code of http status codes :
request.AllowSpecificHttpStatusCode(409).ExecuteAsync();