FluentRest - Lightweight fluent wrapper over HttpClient
Features
- Fluent request building
- Fluent form building
- Automatic deserialization of response
- Plugin different serialization
- Fake HTTP responses
Download
The FluentRest library is available on nuget.org via package name FluentRest.
To install FluentRest, run the following command in the Package Manager Console
Install-Package FluentRest
Fluent Request
Create a form post request
var client = new FluentClient();
client.BaseUri = new Uri("http://echo.jpillora.com/", UriKind.Absolute);
var result = await client.PostAsync<EchoResult>(b => b
.AppendPath("Project")
.AppendPath("123")
.FormValue("Test", "Value")
.FormValue("key", "value")
.QueryString("page", 10)
);
Custom authorization header
