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
50
Flurl.Http.Xml
XML extensions to Flurl.Http
59

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 55 07/23/2024
4.0.1 45 07/23/2024
4.0.0 44 07/23/2024
4.0.0-pre7 53 07/23/2024
4.0.0-pre6 49 07/23/2024
4.0.0-pre5 48 07/23/2024
4.0.0-pre4 43 07/23/2024
4.0.0-pre3 47 07/23/2024
4.0.0-pre2 49 07/23/2024
4.0.0-pre1 49 07/23/2024
3.2.4 41 07/23/2024
3.2.4-pre2 42 07/23/2024
3.2.4-pre1 53 07/23/2024
3.2.3 49 07/23/2024
3.2.2 46 07/23/2024
3.2.1 54 07/23/2024
3.2.0 52 07/23/2024
3.0.1 48 07/23/2024
3.0.0 62 07/23/2024
3.0.0-pre6 47 07/23/2024
3.0.0-pre5 46 07/23/2024
3.0.0-pre4 50 07/23/2024
3.0.0-pre3 57 07/23/2024
3.0.0-pre2 45 07/23/2024
3.0.0-pre1 46 07/23/2024
2.4.2 45 07/23/2024
2.4.1 51 07/23/2024
2.4.0 47 07/23/2024
2.4.0-pre 46 07/23/2024
2.3.2 47 07/23/2024
2.3.1 52 07/23/2024
2.3.0 42 07/23/2024
2.3.0-pre1 49 07/23/2024
2.2.1 44 07/23/2024
2.2.0 62 07/23/2024
2.2.0-pre2 47 07/23/2024
2.2.0-pre1 51 07/23/2024
2.1.1 41 07/23/2024
2.1.0 45 07/23/2024
2.1.0-pre 49 07/23/2024
2.0.1 40 07/23/2024
2.0.0 52 07/23/2024
2.0.0-pre4 43 08/11/2024
2.0.0-pre3 51 07/23/2024
2.0.0-pre2 56 07/23/2024
2.0.0-pre1 48 07/23/2024
1.2.0 56 07/23/2024
1.2.0-pre 49 07/23/2024
1.1.3 46 07/23/2024
1.1.2 48 07/23/2024
1.1.1 44 07/23/2024
1.1.1-pre 45 07/23/2024
1.1.0-pre 45 07/23/2024
1.0.3 50 07/23/2024
1.0.2 50 07/23/2024
1.0.1 39 07/23/2024
1.0.0 50 07/23/2024
1.0.0-beta9 60 07/23/2024
1.0.0-beta8 52 07/23/2024
1.0.0-beta7 48 07/23/2024
0.10.1 45 07/23/2024
0.10.0 55 07/23/2024
0.10.0-pre2 51 07/23/2024
0.10.0-pre 47 07/23/2024
0.9.0 50 07/23/2024
0.9.0-pre 55 07/23/2024
0.8.0 59 07/23/2024
0.8.0-pre 41 07/23/2024
0.7.0 53 07/23/2024
0.6.4 47 07/23/2024
0.6.3 48 07/23/2024
0.6.2 44 07/23/2024
0.6.1 46 07/23/2024
0.6.0 47 07/23/2024
0.5.3 48 07/23/2024
0.5.2 45 07/23/2024
0.5.1 54 07/23/2024
0.5.0 46 07/23/2024
0.4.2 47 07/23/2024
0.4.1 50 07/23/2024
0.4.0 52 07/23/2024
0.4.0-pre2 41 07/23/2024
0.4.0-pre 43 07/23/2024
0.3.0-pre 44 07/23/2024
0.2.5 48 07/23/2024
0.2.4 44 07/23/2024
0.2.3 45 07/23/2024
0.2.2 47 07/23/2024
0.2.1 55 07/23/2024
0.2.0 49 07/23/2024
0.2.0-pre 43 07/23/2024
0.1.3 43 07/23/2024
0.1.2 0 05/12/2014
0.1.1 0 05/05/2014
0.1.0 47 07/23/2024