DocaLabs.Http.Client 2.0.0.1

Strong typed HTTP client. The main goal of the library is to minimize plumbing code to bare minimum.

Install-Package DocaLabs.Http.Client -Version 2.0.0.1
dotnet add package DocaLabs.Http.Client --version 2.0.0.1
paket add DocaLabs.Http.Client --version 2.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

There are a lot of changes and enhancements. Some major improvements:
* Ability to map a model properties into the URL's path, e.g. if the RUL is specified like http://foo.com/accounts/{id} and the model as a property named id then the value of that property will be mapped into the path in place of {id}.
* Ability to specify that some properties must be added as headers, a property must be either marked by the RequstUse(RequestUseTargets.RequestHeader) attribute or be of WebHeaderCollection type.
* Ability to supply credentials in the model, a property should be of ICredentials type
* Special treatment of Stream as input or output models.
* HttpClientFactory will be able to generate plumbing to service call methods that have more than one argument - it'll generate a model class with properties for each argument.
* Binding is made more flexible, it's possible to do custom binding per model type for each step in the pipeline - mapping properties to the URL, headers, credentials, writing to request body.
* Ability to get some information about the response - headers, etag, status code

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
3.0.0 8,720 10/28/2013
2.0.1.2 332 9/19/2013
2.0.0.1 (current version) 173 9/16/2013
1.0.1.2 171 9/6/2013
1.0.1.1 348 4/2/2013
1.0.1 263 2/28/2013
1.0.0 209 2/23/2013