Flurl.Http 4.0.0

Flurl

build NuGet Version NuGet Downloads

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
138
Flurl.Http.Xml
XML extensions to Flurl.Http
173

https://github.com/tmenier/Flurl/releases

.NET Framework 4.6.1

.NET 6.0

.NET Standard 2.0

Version Downloads Last updated
4.0.2 187 07/23/2024
4.0.1 141 07/23/2024
4.0.0 132 07/23/2024
4.0.0-pre7 153 07/23/2024
4.0.0-pre6 157 07/23/2024
4.0.0-pre5 144 07/23/2024
4.0.0-pre4 145 07/23/2024
4.0.0-pre3 165 07/23/2024
4.0.0-pre2 141 07/23/2024
4.0.0-pre1 162 07/23/2024
3.2.4 156 07/23/2024
3.2.4-pre2 146 07/23/2024
3.2.4-pre1 160 07/23/2024
3.2.3 149 07/23/2024
3.2.2 162 07/23/2024
3.2.1 163 07/23/2024
3.2.0 173 07/23/2024
3.0.1 151 07/23/2024
3.0.0 166 07/23/2024
3.0.0-pre6 167 07/23/2024
3.0.0-pre5 178 07/23/2024
3.0.0-pre4 165 07/23/2024
3.0.0-pre3 165 07/23/2024
3.0.0-pre2 147 07/23/2024
3.0.0-pre1 136 07/23/2024
2.4.2 151 07/23/2024
2.4.1 157 07/23/2024
2.4.0 173 07/23/2024
2.4.0-pre 142 07/23/2024
2.3.2 135 07/23/2024
2.3.1 171 07/23/2024
2.3.0 139 07/23/2024
2.3.0-pre1 147 07/23/2024
2.2.1 148 07/23/2024
2.2.0 156 07/23/2024
2.2.0-pre2 148 07/23/2024
2.2.0-pre1 157 07/23/2024
2.1.1 141 07/23/2024
2.1.0 157 07/23/2024
2.1.0-pre 167 07/23/2024
2.0.1 140 07/23/2024
2.0.0 148 07/23/2024
2.0.0-pre4 136 08/11/2024
2.0.0-pre3 127 07/23/2024
2.0.0-pre2 161 07/23/2024
2.0.0-pre1 147 07/23/2024
1.2.0 166 07/23/2024
1.2.0-pre 155 07/23/2024
1.1.3 133 07/23/2024
1.1.2 159 07/23/2024
1.1.1 140 07/23/2024
1.1.1-pre 149 07/23/2024
1.1.0-pre 149 07/23/2024
1.0.3 154 07/23/2024
1.0.2 153 07/23/2024
1.0.1 139 07/23/2024
1.0.0 155 07/23/2024
1.0.0-beta9 163 07/23/2024
1.0.0-beta8 165 07/23/2024
1.0.0-beta7 180 07/23/2024
0.10.1 149 07/23/2024
0.10.0 155 07/23/2024
0.10.0-pre2 157 07/23/2024
0.10.0-pre 169 07/23/2024
0.9.0 152 07/23/2024
0.9.0-pre 157 07/23/2024
0.8.0 187 07/23/2024
0.8.0-pre 152 07/23/2024
0.7.0 160 07/23/2024
0.6.4 147 07/23/2024
0.6.3 152 07/23/2024
0.6.2 162 07/23/2024
0.6.1 137 07/23/2024
0.6.0 166 07/23/2024
0.5.3 152 07/23/2024
0.5.2 149 07/23/2024
0.5.1 159 07/23/2024
0.5.0 172 07/23/2024
0.4.2 145 07/23/2024
0.4.1 166 07/23/2024
0.4.0 158 07/23/2024
0.4.0-pre2 139 07/23/2024
0.4.0-pre 138 07/23/2024
0.3.0-pre 143 07/23/2024
0.2.5 132 07/23/2024
0.2.4 128 07/23/2024
0.2.3 162 07/23/2024
0.2.2 136 07/23/2024
0.2.1 150 07/23/2024
0.2.0 161 07/23/2024
0.2.0-pre 141 07/23/2024
0.1.3 158 07/23/2024
0.1.2 0 05/12/2014
0.1.1 0 05/05/2014
0.1.0 152 07/23/2024