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.
No packages depend on Flurl.Http.
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 | 5 | 3/12/2025 |
4.0.1 | 5 | 3/12/2025 |
4.0.0 | 5 | 3/12/2025 |
4.0.0-pre7 | 5 | 3/12/2025 |
4.0.0-pre6 | 5 | 3/12/2025 |
4.0.0-pre5 | 5 | 3/12/2025 |
4.0.0-pre4 | 5 | 3/12/2025 |
4.0.0-pre3 | 5 | 3/12/2025 |
4.0.0-pre2 | 5 | 3/12/2025 |
4.0.0-pre1 | 5 | 3/12/2025 |
3.2.4 | 5 | 3/12/2025 |
3.2.4-pre2 | 5 | 3/12/2025 |
3.2.4-pre1 | 5 | 3/12/2025 |
3.2.3 | 5 | 3/12/2025 |
3.2.2 | 5 | 3/12/2025 |
3.2.1 | 5 | 3/12/2025 |
3.2.0 | 6 | 3/7/2025 |
3.0.1 | 5 | 3/12/2025 |
3.0.0 | 5 | 3/12/2025 |
3.0.0-pre6 | 5 | 3/12/2025 |
3.0.0-pre5 | 5 | 3/12/2025 |
3.0.0-pre4 | 5 | 3/12/2025 |
3.0.0-pre3 | 5 | 3/12/2025 |
3.0.0-pre2 | 5 | 3/12/2025 |
3.0.0-pre1 | 5 | 3/12/2025 |
2.4.2 | 5 | 3/12/2025 |
2.4.1 | 5 | 3/12/2025 |
2.4.0 | 5 | 3/12/2025 |
2.4.0-pre | 5 | 3/12/2025 |
2.3.2 | 5 | 3/12/2025 |
2.3.1 | 5 | 3/12/2025 |
2.3.0 | 5 | 3/12/2025 |
2.3.0-pre1 | 5 | 3/12/2025 |
2.2.1 | 5 | 3/12/2025 |
2.2.0 | 5 | 3/12/2025 |
2.2.0-pre2 | 5 | 3/12/2025 |
2.2.0-pre1 | 5 | 3/12/2025 |
2.1.1 | 5 | 3/12/2025 |
2.1.0 | 5 | 3/12/2025 |
2.1.0-pre | 5 | 3/12/2025 |
2.0.1 | 5 | 3/12/2025 |
2.0.0 | 5 | 3/12/2025 |
2.0.0-pre4 | 5 | 3/12/2025 |
2.0.0-pre3 | 5 | 3/12/2025 |
2.0.0-pre2 | 5 | 3/12/2025 |
2.0.0-pre1 | 5 | 3/12/2025 |
1.2.0 | 5 | 3/12/2025 |
1.2.0-pre | 5 | 3/12/2025 |
1.1.3 | 5 | 3/12/2025 |
1.1.2 | 5 | 3/12/2025 |
1.1.1 | 5 | 3/12/2025 |
1.1.1-pre | 5 | 3/12/2025 |
1.1.0-pre | 5 | 3/12/2025 |
1.0.3 | 5 | 3/12/2025 |
1.0.2 | 5 | 3/12/2025 |
1.0.1 | 5 | 3/12/2025 |
1.0.0 | 5 | 3/12/2025 |
1.0.0-beta9 | 5 | 3/12/2025 |
1.0.0-beta8 | 5 | 3/12/2025 |
1.0.0-beta7 | 5 | 3/12/2025 |
0.10.1 | 5 | 3/12/2025 |
0.10.0 | 5 | 3/12/2025 |
0.10.0-pre2 | 5 | 3/12/2025 |
0.10.0-pre | 5 | 3/12/2025 |
0.9.0 | 5 | 3/12/2025 |
0.9.0-pre | 5 | 3/12/2025 |
0.8.0 | 5 | 3/12/2025 |
0.8.0-pre | 5 | 3/12/2025 |
0.7.0 | 5 | 3/12/2025 |
0.6.4 | 5 | 3/12/2025 |
0.6.3 | 5 | 3/12/2025 |
0.6.2 | 5 | 3/12/2025 |
0.6.1 | 5 | 3/12/2025 |
0.6.0 | 5 | 3/12/2025 |
0.5.3 | 5 | 3/12/2025 |
0.5.2 | 5 | 3/12/2025 |
0.5.1 | 5 | 3/12/2025 |
0.5.0 | 5 | 3/12/2025 |
0.4.2 | 5 | 3/12/2025 |
0.4.1 | 5 | 3/12/2025 |
0.4.0 | 5 | 3/12/2025 |
0.4.0-pre2 | 5 | 3/12/2025 |
0.4.0-pre | 5 | 3/12/2025 |
0.3.0-pre | 6 | 3/12/2025 |
0.2.5 | 5 | 3/12/2025 |
0.2.4 | 5 | 3/12/2025 |
0.2.3 | 5 | 3/12/2025 |
0.2.2 | 5 | 3/12/2025 |
0.2.1 | 5 | 3/12/2025 |
0.2.0 | 5 | 3/12/2025 |
0.2.0-pre | 5 | 3/12/2025 |
0.1.3 | 5 | 3/12/2025 |
0.1.2 | 0 | 5/12/2014 |
0.1.1 | 0 | 5/5/2014 |
0.1.0 | 5 | 3/12/2025 |