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.

No packages depend on Flurl.Http.

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 13 01/27/2024
4.0.1 10 01/25/2024
4.0.0 11 03/02/2024
4.0.0-pre7 11 03/25/2024
4.0.0-pre6 11 03/02/2024
4.0.0-pre5 11 03/20/2024
4.0.0-pre4 11 03/20/2024
4.0.0-pre3 12 08/19/2023
4.0.0-pre2 12 03/03/2024
4.0.0-pre1 11 03/20/2024
3.2.4 24 09/26/2023
3.2.4-pre2 12 03/12/2024
3.2.4-pre1 11 03/13/2024
3.2.3 10 03/02/2024
3.2.2 12 03/03/2024
3.2.1 10 03/03/2024
3.2.0 11 03/03/2024
3.0.1 11 03/03/2024
3.0.0 13 03/25/2024
3.0.0-pre6 11 03/03/2024
3.0.0-pre5 10 03/19/2024
3.0.0-pre4 11 03/19/2024
3.0.0-pre3 12 03/19/2024
3.0.0-pre2 12 03/18/2024
3.0.0-pre1 10 03/13/2024
2.4.2 13 03/02/2024
2.4.1 12 03/03/2024
2.4.0 12 03/03/2024
2.4.0-pre 10 03/13/2024
2.3.2 11 01/05/2024
2.3.1 10 03/02/2024
2.3.0 12 03/02/2024
2.3.0-pre1 10 01/28/2024
2.2.1 10 03/03/2024
2.2.0 12 03/01/2024
2.2.0-pre2 11 03/12/2024
2.2.0-pre1 11 03/13/2024
2.1.1 10 03/12/2024
2.1.0 11 03/02/2024
2.1.0-pre 10 03/13/2024
2.0.1 13 03/02/2024
2.0.0 10 03/01/2024
2.0.0-pre4 10 03/17/2024
2.0.0-pre3 10 03/17/2024
2.0.0-pre2 11 03/17/2024
2.0.0-pre1 10 03/18/2024
1.2.0 12 03/01/2024
1.2.0-pre 9 03/13/2024
1.1.3 11 03/02/2024
1.1.2 9 03/13/2024
1.1.1 10 03/02/2024
1.1.1-pre 11 03/13/2024
1.1.0-pre 11 03/15/2024
1.0.3 10 01/09/2024
1.0.2 11 01/08/2024
1.0.1 10 03/13/2024
1.0.0 10 03/02/2024
1.0.0-beta9 10 02/28/2025
1.0.0-beta8 12 03/17/2024
1.0.0-beta7 13 03/22/2024
0.10.1 12 03/02/2024
0.10.0 13 03/03/2024
0.10.0-pre2 11 03/13/2024
0.10.0-pre 10 03/13/2024
0.9.0 10 03/13/2024
0.9.0-pre 10 03/13/2024
0.8.0 11 03/16/2024
0.8.0-pre 13 03/16/2024
0.7.0 10 03/03/2024
0.6.4 11 03/17/2024
0.6.3 10 03/16/2024
0.6.2 11 01/07/2024
0.6.1 11 03/13/2024
0.6.0 10 03/02/2024
0.5.3 11 03/24/2024
0.5.2 11 03/03/2024
0.5.1 10 01/25/2024
0.5.0 10 03/25/2024
0.4.2 11 03/02/2024
0.4.1 11 01/15/2024
0.4.0 9 03/15/2024
0.4.0-pre2 11 03/17/2024
0.4.0-pre 10 03/15/2024
0.3.0-pre 10 03/13/2024
0.2.5 10 03/13/2024
0.2.4 12 03/01/2024
0.2.3 10 03/02/2024
0.2.2 11 03/01/2024
0.2.1 11 01/24/2024
0.2.0 11 03/12/2024
0.2.0-pre 10 03/12/2024
0.1.3 10 03/14/2024
0.1.2 0 05/12/2014
0.1.1 0 05/05/2014
0.1.0 10 01/05/2024