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
95
Flurl.Http.Xml
XML extensions to Flurl.Http
102

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 100 07/23/2024
4.0.1 86 07/23/2024
4.0.0 88 07/23/2024
4.0.0-pre7 96 07/23/2024
4.0.0-pre6 89 07/23/2024
4.0.0-pre5 93 07/23/2024
4.0.0-pre4 83 07/23/2024
4.0.0-pre3 99 07/23/2024
4.0.0-pre2 93 07/23/2024
4.0.0-pre1 97 07/23/2024
3.2.4 85 07/23/2024
3.2.4-pre2 85 07/23/2024
3.2.4-pre1 95 07/23/2024
3.2.3 93 07/23/2024
3.2.2 90 07/23/2024
3.2.1 105 07/23/2024
3.2.0 96 07/23/2024
3.0.1 89 07/23/2024
3.0.0 104 07/23/2024
3.0.0-pre6 95 07/23/2024
3.0.0-pre5 87 07/23/2024
3.0.0-pre4 97 07/23/2024
3.0.0-pre3 104 07/23/2024
3.0.0-pre2 83 07/23/2024
3.0.0-pre1 81 07/23/2024
2.4.2 84 07/23/2024
2.4.1 86 07/23/2024
2.4.0 95 07/23/2024
2.4.0-pre 81 07/23/2024
2.3.2 84 07/23/2024
2.3.1 96 07/23/2024
2.3.0 83 07/23/2024
2.3.0-pre1 92 07/23/2024
2.2.1 86 07/23/2024
2.2.0 100 07/23/2024
2.2.0-pre2 86 07/23/2024
2.2.0-pre1 94 07/23/2024
2.1.1 86 07/23/2024
2.1.0 83 07/23/2024
2.1.0-pre 105 07/23/2024
2.0.1 79 07/23/2024
2.0.0 92 07/23/2024
2.0.0-pre4 84 08/11/2024
2.0.0-pre3 87 07/23/2024
2.0.0-pre2 99 07/23/2024
2.0.0-pre1 89 07/23/2024
1.2.0 97 07/23/2024
1.2.0-pre 90 07/23/2024
1.1.3 77 07/23/2024
1.1.2 87 07/23/2024
1.1.1 84 07/23/2024
1.1.1-pre 91 07/23/2024
1.1.0-pre 82 07/23/2024
1.0.3 86 07/23/2024
1.0.2 98 07/23/2024
1.0.1 78 07/23/2024
1.0.0 90 07/23/2024
1.0.0-beta9 93 07/23/2024
1.0.0-beta8 89 07/23/2024
1.0.0-beta7 101 07/23/2024
0.10.1 90 07/23/2024
0.10.0 100 07/23/2024
0.10.0-pre2 97 07/23/2024
0.10.0-pre 87 07/23/2024
0.9.0 101 07/23/2024
0.9.0-pre 96 07/23/2024
0.8.0 105 07/23/2024
0.8.0-pre 82 07/23/2024
0.7.0 92 07/23/2024
0.6.4 89 07/23/2024
0.6.3 87 07/23/2024
0.6.2 76 07/23/2024
0.6.1 91 07/23/2024
0.6.0 90 07/23/2024
0.5.3 93 07/23/2024
0.5.2 89 07/23/2024
0.5.1 95 07/23/2024
0.5.0 89 07/23/2024
0.4.2 91 07/23/2024
0.4.1 100 07/23/2024
0.4.0 91 07/23/2024
0.4.0-pre2 84 07/23/2024
0.4.0-pre 90 07/23/2024
0.3.0-pre 94 07/23/2024
0.2.5 84 07/23/2024
0.2.4 89 07/23/2024
0.2.3 93 07/23/2024
0.2.2 83 07/23/2024
0.2.1 97 07/23/2024
0.2.0 91 07/23/2024
0.2.0-pre 83 07/23/2024
0.1.3 91 07/23/2024
0.1.2 0 05/12/2014
0.1.1 0 05/05/2014
0.1.0 85 07/23/2024