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
|
113 |
|
Flurl.Http.Xml
XML extensions to Flurl.Http
|
135 |
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 | 141 | 07/23/2024 |
| 4.0.1 | 111 | 07/23/2024 |
| 4.0.0 | 112 | 07/23/2024 |
| 4.0.0-pre7 | 126 | 07/23/2024 |
| 4.0.0-pre6 | 130 | 07/23/2024 |
| 4.0.0-pre5 | 125 | 07/23/2024 |
| 4.0.0-pre4 | 121 | 07/23/2024 |
| 4.0.0-pre3 | 133 | 07/23/2024 |
| 4.0.0-pre2 | 120 | 07/23/2024 |
| 4.0.0-pre1 | 131 | 07/23/2024 |
| 3.2.4 | 126 | 07/23/2024 |
| 3.2.4-pre2 | 119 | 07/23/2024 |
| 3.2.4-pre1 | 122 | 07/23/2024 |
| 3.2.3 | 119 | 07/23/2024 |
| 3.2.2 | 134 | 07/23/2024 |
| 3.2.1 | 133 | 07/23/2024 |
| 3.2.0 | 144 | 07/23/2024 |
| 3.0.1 | 117 | 07/23/2024 |
| 3.0.0 | 135 | 07/23/2024 |
| 3.0.0-pre6 | 134 | 07/23/2024 |
| 3.0.0-pre5 | 146 | 07/23/2024 |
| 3.0.0-pre4 | 132 | 07/23/2024 |
| 3.0.0-pre3 | 133 | 07/23/2024 |
| 3.0.0-pre2 | 114 | 07/23/2024 |
| 3.0.0-pre1 | 108 | 07/23/2024 |
| 2.4.2 | 120 | 07/23/2024 |
| 2.4.1 | 124 | 07/23/2024 |
| 2.4.0 | 138 | 07/23/2024 |
| 2.4.0-pre | 112 | 07/23/2024 |
| 2.3.2 | 109 | 07/23/2024 |
| 2.3.1 | 139 | 07/23/2024 |
| 2.3.0 | 110 | 07/23/2024 |
| 2.3.0-pre1 | 115 | 07/23/2024 |
| 2.2.1 | 114 | 07/23/2024 |
| 2.2.0 | 126 | 07/23/2024 |
| 2.2.0-pre2 | 116 | 07/23/2024 |
| 2.2.0-pre1 | 130 | 07/23/2024 |
| 2.1.1 | 111 | 07/23/2024 |
| 2.1.0 | 122 | 07/23/2024 |
| 2.1.0-pre | 136 | 07/23/2024 |
| 2.0.1 | 117 | 07/23/2024 |
| 2.0.0 | 121 | 07/23/2024 |
| 2.0.0-pre4 | 108 | 08/11/2024 |
| 2.0.0-pre3 | 107 | 07/23/2024 |
| 2.0.0-pre2 | 132 | 07/23/2024 |
| 2.0.0-pre1 | 115 | 07/23/2024 |
| 1.2.0 | 132 | 07/23/2024 |
| 1.2.0-pre | 131 | 07/23/2024 |
| 1.1.3 | 104 | 07/23/2024 |
| 1.1.2 | 127 | 07/23/2024 |
| 1.1.1 | 107 | 07/23/2024 |
| 1.1.1-pre | 118 | 07/23/2024 |
| 1.1.0-pre | 115 | 07/23/2024 |
| 1.0.3 | 132 | 07/23/2024 |
| 1.0.2 | 129 | 07/23/2024 |
| 1.0.1 | 114 | 07/23/2024 |
| 1.0.0 | 124 | 07/23/2024 |
| 1.0.0-beta9 | 130 | 07/23/2024 |
| 1.0.0-beta8 | 128 | 07/23/2024 |
| 1.0.0-beta7 | 152 | 07/23/2024 |
| 0.10.1 | 120 | 07/23/2024 |
| 0.10.0 | 127 | 07/23/2024 |
| 0.10.0-pre2 | 128 | 07/23/2024 |
| 0.10.0-pre | 137 | 07/23/2024 |
| 0.9.0 | 126 | 07/23/2024 |
| 0.9.0-pre | 120 | 07/23/2024 |
| 0.8.0 | 156 | 07/23/2024 |
| 0.8.0-pre | 125 | 07/23/2024 |
| 0.7.0 | 128 | 07/23/2024 |
| 0.6.4 | 113 | 07/23/2024 |
| 0.6.3 | 123 | 07/23/2024 |
| 0.6.2 | 129 | 07/23/2024 |
| 0.6.1 | 113 | 07/23/2024 |
| 0.6.0 | 132 | 07/23/2024 |
| 0.5.3 | 118 | 07/23/2024 |
| 0.5.2 | 125 | 07/23/2024 |
| 0.5.1 | 137 | 07/23/2024 |
| 0.5.0 | 140 | 07/23/2024 |
| 0.4.2 | 115 | 07/23/2024 |
| 0.4.1 | 136 | 07/23/2024 |
| 0.4.0 | 123 | 07/23/2024 |
| 0.4.0-pre2 | 112 | 07/23/2024 |
| 0.4.0-pre | 116 | 07/23/2024 |
| 0.3.0-pre | 124 | 07/23/2024 |
| 0.2.5 | 106 | 07/23/2024 |
| 0.2.4 | 108 | 07/23/2024 |
| 0.2.3 | 131 | 07/23/2024 |
| 0.2.2 | 111 | 07/23/2024 |
| 0.2.1 | 119 | 07/23/2024 |
| 0.2.0 | 127 | 07/23/2024 |
| 0.2.0-pre | 111 | 07/23/2024 |
| 0.1.3 | 128 | 07/23/2024 |
| 0.1.2 | 0 | 05/12/2014 |
| 0.1.1 | 0 | 05/05/2014 |
| 0.1.0 | 125 | 07/23/2024 |