Flurl.Http 4.0.2
Flurl
Flurl is a modern, fluent, asynchronous, testable, portable, buzzword-laden URL builder and HTTP client library.
var result = await "https://api.mysite.com"
.AppendPathSegment("person")
.SetQueryParams(new { api_key = "xyz" })
.WithOAuthBearerToken("my_oauth_token")
.PostJsonAsync(new { first_name = firstName, last_name = lastName })
.ReceiveJson<T>();
[Test]
public void Can_Create_Person() {
// fake & record all http calls in the test subject
using var httpTest = new HttpTest();
// arrange
httpTest.RespondWith("OK", 200);
// act
await sut.CreatePersonAsync("Frank", "Reynolds");
// assert
httpTest.ShouldHaveCalled("http://api.mysite.com/*")
.WithVerb(HttpMethod.Post)
.WithContentType("application/json");
}
Get it on NuGet:
PM> Install-Package Flurl.Http
Or get just the stand-alone URL builder without the HTTP features:
PM> Install-Package Flurl
For updates and announcements, follow @FlurlHttp on Twitter.
For detailed documentation, please visit the main site.
Showing the top 20 packages that depend on Flurl.Http.
Packages | Downloads |
---|---|
Flurl.Http.Xml
XML extensions to Flurl.Http
|
18 |
Flurl.Http.Xml
XML extensions to Flurl.Http
|
21 |
https://github.com/tmenier/Flurl/releases
.NET Framework 4.6.1
- Flurl (>= 4.0.0)
- System.Text.Json (>= 6.0.4)
.NET 6.0
- Flurl (>= 4.0.0)
.NET Standard 2.0
- Flurl (>= 4.0.0)
- System.Text.Encoding.CodePages (>= 4.5.1)
- System.Text.Json (>= 6.0.4)
Version | Downloads | Last updated |
---|---|---|
4.0.2 | 22 | 07/23/2024 |
4.0.1 | 11 | 07/23/2024 |
4.0.0 | 12 | 07/23/2024 |
4.0.0-pre7 | 20 | 07/23/2024 |
4.0.0-pre6 | 16 | 07/23/2024 |
4.0.0-pre5 | 15 | 07/23/2024 |
4.0.0-pre4 | 12 | 07/23/2024 |
4.0.0-pre3 | 12 | 07/23/2024 |
4.0.0-pre2 | 17 | 07/23/2024 |
4.0.0-pre1 | 18 | 07/23/2024 |
3.2.4 | 11 | 07/23/2024 |
3.2.4-pre2 | 10 | 07/23/2024 |
3.2.4-pre1 | 21 | 07/23/2024 |
3.2.3 | 16 | 07/23/2024 |
3.2.2 | 14 | 07/23/2024 |
3.2.1 | 20 | 07/23/2024 |
3.2.0 | 12 | 07/23/2024 |
3.0.1 | 17 | 07/23/2024 |
3.0.0 | 23 | 07/23/2024 |
3.0.0-pre6 | 15 | 07/23/2024 |
3.0.0-pre5 | 14 | 07/23/2024 |
3.0.0-pre4 | 12 | 07/23/2024 |
3.0.0-pre3 | 18 | 07/23/2024 |
3.0.0-pre2 | 14 | 07/23/2024 |
3.0.0-pre1 | 12 | 07/23/2024 |
2.4.2 | 12 | 07/23/2024 |
2.4.1 | 20 | 07/23/2024 |
2.4.0 | 13 | 07/23/2024 |
2.4.0-pre | 14 | 07/23/2024 |
2.3.2 | 17 | 07/23/2024 |
2.3.1 | 20 | 07/23/2024 |
2.3.0 | 13 | 07/23/2024 |
2.3.0-pre1 | 17 | 07/23/2024 |
2.2.1 | 12 | 07/23/2024 |
2.2.0 | 23 | 07/23/2024 |
2.2.0-pre2 | 19 | 07/23/2024 |
2.2.0-pre1 | 16 | 07/23/2024 |
2.1.1 | 11 | 07/23/2024 |
2.1.0 | 15 | 07/23/2024 |
2.1.0-pre | 12 | 07/23/2024 |
2.0.1 | 12 | 07/23/2024 |
2.0.0 | 17 | 07/23/2024 |
2.0.0-pre4 | 11 | 08/11/2024 |
2.0.0-pre3 | 18 | 07/23/2024 |
2.0.0-pre2 | 24 | 07/23/2024 |
2.0.0-pre1 | 17 | 07/23/2024 |
1.2.0 | 19 | 07/23/2024 |
1.2.0-pre | 16 | 07/23/2024 |
1.1.3 | 11 | 07/23/2024 |
1.1.2 | 15 | 07/23/2024 |
1.1.1 | 14 | 07/23/2024 |
1.1.1-pre | 14 | 07/23/2024 |
1.1.0-pre | 16 | 07/23/2024 |
1.0.3 | 14 | 07/23/2024 |
1.0.2 | 18 | 07/23/2024 |
1.0.1 | 12 | 07/23/2024 |
1.0.0 | 16 | 07/23/2024 |
1.0.0-beta9 | 19 | 07/23/2024 |
1.0.0-beta8 | 20 | 07/23/2024 |
1.0.0-beta7 | 18 | 07/23/2024 |
0.10.1 | 13 | 07/23/2024 |
0.10.0 | 21 | 07/23/2024 |
0.10.0-pre2 | 21 | 07/23/2024 |
0.10.0-pre | 17 | 07/23/2024 |
0.9.0 | 19 | 07/23/2024 |
0.9.0-pre | 22 | 07/23/2024 |
0.8.0 | 22 | 07/23/2024 |
0.8.0-pre | 11 | 07/23/2024 |
0.7.0 | 20 | 07/23/2024 |
0.6.4 | 18 | 07/23/2024 |
0.6.3 | 12 | 07/23/2024 |
0.6.2 | 16 | 07/23/2024 |
0.6.1 | 17 | 07/23/2024 |
0.6.0 | 14 | 07/23/2024 |
0.5.3 | 15 | 07/23/2024 |
0.5.2 | 10 | 07/23/2024 |
0.5.1 | 21 | 07/23/2024 |
0.5.0 | 12 | 07/23/2024 |
0.4.2 | 15 | 07/23/2024 |
0.4.1 | 20 | 07/23/2024 |
0.4.0 | 17 | 07/23/2024 |
0.4.0-pre2 | 11 | 07/23/2024 |
0.4.0-pre | 13 | 07/23/2024 |
0.3.0-pre | 15 | 07/23/2024 |
0.2.5 | 17 | 07/23/2024 |
0.2.4 | 14 | 07/23/2024 |
0.2.3 | 13 | 07/23/2024 |
0.2.2 | 17 | 07/23/2024 |
0.2.1 | 23 | 07/23/2024 |
0.2.0 | 19 | 07/23/2024 |
0.2.0-pre | 10 | 07/23/2024 |
0.1.3 | 16 | 07/23/2024 |
0.1.2 | 0 | 05/12/2014 |
0.1.1 | 0 | 05/05/2014 |
0.1.0 | 12 | 07/23/2024 |