Flurl.Http 4.0.0
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
|
42 |
Flurl.Http.Xml
XML extensions to Flurl.Http
|
46 |
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 | 45 | 07/23/2024 |
4.0.1 | 33 | 07/23/2024 |
4.0.0 | 37 | 07/23/2024 |
4.0.0-pre7 | 44 | 07/23/2024 |
4.0.0-pre6 | 39 | 07/23/2024 |
4.0.0-pre5 | 39 | 07/23/2024 |
4.0.0-pre4 | 34 | 07/23/2024 |
4.0.0-pre3 | 38 | 07/23/2024 |
4.0.0-pre2 | 40 | 07/23/2024 |
4.0.0-pre1 | 40 | 07/23/2024 |
3.2.4 | 33 | 07/23/2024 |
3.2.4-pre2 | 33 | 07/23/2024 |
3.2.4-pre1 | 43 | 07/23/2024 |
3.2.3 | 40 | 07/23/2024 |
3.2.2 | 36 | 07/23/2024 |
3.2.1 | 45 | 07/23/2024 |
3.2.0 | 44 | 07/23/2024 |
3.0.1 | 39 | 07/23/2024 |
3.0.0 | 52 | 07/23/2024 |
3.0.0-pre6 | 39 | 07/23/2024 |
3.0.0-pre5 | 36 | 07/23/2024 |
3.0.0-pre4 | 39 | 07/23/2024 |
3.0.0-pre3 | 47 | 07/23/2024 |
3.0.0-pre2 | 38 | 07/23/2024 |
3.0.0-pre1 | 36 | 07/23/2024 |
2.4.2 | 34 | 07/23/2024 |
2.4.1 | 42 | 07/23/2024 |
2.4.0 | 35 | 07/23/2024 |
2.4.0-pre | 38 | 07/23/2024 |
2.3.2 | 39 | 07/23/2024 |
2.3.1 | 42 | 07/23/2024 |
2.3.0 | 34 | 07/23/2024 |
2.3.0-pre1 | 39 | 07/23/2024 |
2.2.1 | 34 | 07/23/2024 |
2.2.0 | 50 | 07/23/2024 |
2.2.0-pre2 | 40 | 07/23/2024 |
2.2.0-pre1 | 42 | 07/23/2024 |
2.1.1 | 34 | 07/23/2024 |
2.1.0 | 37 | 07/23/2024 |
2.1.0-pre | 41 | 07/23/2024 |
2.0.1 | 33 | 07/23/2024 |
2.0.0 | 44 | 07/23/2024 |
2.0.0-pre4 | 34 | 08/11/2024 |
2.0.0-pre3 | 43 | 07/23/2024 |
2.0.0-pre2 | 45 | 07/23/2024 |
2.0.0-pre1 | 40 | 07/23/2024 |
1.2.0 | 48 | 07/23/2024 |
1.2.0-pre | 41 | 07/23/2024 |
1.1.3 | 36 | 07/23/2024 |
1.1.2 | 39 | 07/23/2024 |
1.1.1 | 35 | 07/23/2024 |
1.1.1-pre | 37 | 07/23/2024 |
1.1.0-pre | 37 | 07/23/2024 |
1.0.3 | 41 | 07/23/2024 |
1.0.2 | 41 | 07/23/2024 |
1.0.1 | 31 | 07/23/2024 |
1.0.0 | 39 | 07/23/2024 |
1.0.0-beta9 | 48 | 07/23/2024 |
1.0.0-beta8 | 41 | 07/23/2024 |
1.0.0-beta7 | 41 | 07/23/2024 |
0.10.1 | 36 | 07/23/2024 |
0.10.0 | 46 | 07/23/2024 |
0.10.0-pre2 | 41 | 07/23/2024 |
0.10.0-pre | 37 | 07/23/2024 |
0.9.0 | 42 | 07/23/2024 |
0.9.0-pre | 44 | 07/23/2024 |
0.8.0 | 45 | 07/23/2024 |
0.8.0-pre | 33 | 07/23/2024 |
0.7.0 | 41 | 07/23/2024 |
0.6.4 | 38 | 07/23/2024 |
0.6.3 | 39 | 07/23/2024 |
0.6.2 | 36 | 07/23/2024 |
0.6.1 | 38 | 07/23/2024 |
0.6.0 | 37 | 07/23/2024 |
0.5.3 | 36 | 07/23/2024 |
0.5.2 | 34 | 07/23/2024 |
0.5.1 | 42 | 07/23/2024 |
0.5.0 | 37 | 07/23/2024 |
0.4.2 | 38 | 07/23/2024 |
0.4.1 | 40 | 07/23/2024 |
0.4.0 | 41 | 07/23/2024 |
0.4.0-pre2 | 33 | 07/23/2024 |
0.4.0-pre | 34 | 07/23/2024 |
0.3.0-pre | 36 | 07/23/2024 |
0.2.5 | 39 | 07/23/2024 |
0.2.4 | 34 | 07/23/2024 |
0.2.3 | 36 | 07/23/2024 |
0.2.2 | 39 | 07/23/2024 |
0.2.1 | 46 | 07/23/2024 |
0.2.0 | 39 | 07/23/2024 |
0.2.0-pre | 32 | 07/23/2024 |
0.1.3 | 35 | 07/23/2024 |
0.1.2 | 0 | 05/12/2014 |
0.1.1 | 0 | 05/05/2014 |
0.1.0 | 38 | 07/23/2024 |