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

Install-Package DocaLabs.Http.Client -Version
dotnet add package DocaLabs.Http.Client --version
paket add DocaLabs.Http.Client --version
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{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


This package has no dependencies.

Version History

Version Downloads Last updated
3.0.0 9,836 10/28/2013 383 9/19/2013 (current version) 210 9/16/2013 207 9/6/2013 397 4/2/2013
1.0.1 298 2/28/2013
1.0.0 244 2/23/2013