Flurl.Http 4.0.2

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
Fluent.LibreTranslate
Fluent sync/async translation via LibreTranslate
2
Fluent.LibreTranslate
Fluent sync/async translation via LibreTranslate
1

.NET Framework 4.6.1

.NET 6.0

.NET Standard 2.0

Version Downloads Last updated
4.0.2 1 12/03/2025
4.0.1 1 12/03/2025
4.0.0 1 12/03/2025
4.0.0-pre7 1 12/03/2025
4.0.0-pre6 1 12/03/2025
4.0.0-pre5 1 12/03/2025
4.0.0-pre4 1 12/03/2025
4.0.0-pre3 1 12/03/2025
4.0.0-pre2 1 12/03/2025
4.0.0-pre1 1 12/03/2025
3.2.4 1 12/03/2025
3.2.4-pre2 1 12/03/2025
3.2.4-pre1 1 12/03/2025
3.2.3 1 12/03/2025
3.2.2 1 12/03/2025
3.2.1 1 12/03/2025
3.2.0 1 12/03/2025
3.0.1 1 12/03/2025
3.0.0 1 12/03/2025
3.0.0-pre6 1 12/03/2025
3.0.0-pre5 1 12/03/2025
3.0.0-pre4 1 12/03/2025
3.0.0-pre3 1 12/03/2025
3.0.0-pre2 1 12/03/2025
3.0.0-pre1 1 12/03/2025
2.4.2 1 12/03/2025
2.4.1 1 12/03/2025
2.4.0 1 12/03/2025
2.4.0-pre 1 12/03/2025
2.3.2 1 12/03/2025
2.3.1 1 12/03/2025
2.3.0 1 12/03/2025
2.3.0-pre1 1 12/03/2025
2.2.1 1 12/03/2025
2.2.0 1 12/03/2025
2.2.0-pre2 1 12/03/2025
2.2.0-pre1 1 12/03/2025
2.1.1 1 12/03/2025
2.1.0 1 12/03/2025
2.1.0-pre 1 12/03/2025
2.0.1 1 12/03/2025
2.0.0 1 12/03/2025
2.0.0-pre4 1 12/03/2025
2.0.0-pre3 1 12/03/2025
2.0.0-pre2 1 12/03/2025
2.0.0-pre1 1 12/03/2025
1.2.0 1 12/03/2025
1.2.0-pre 1 12/03/2025
1.1.3 1 12/03/2025
1.1.2 1 12/03/2025
1.1.1 1 12/03/2025
1.1.1-pre 1 12/03/2025
1.1.0-pre 1 12/03/2025
1.0.3 1 12/03/2025
1.0.2 1 12/03/2025
1.0.1 1 12/03/2025
1.0.0 1 12/03/2025
1.0.0-beta9 1 12/03/2025
1.0.0-beta8 1 12/03/2025
1.0.0-beta7 1 12/03/2025
0.10.1 1 12/03/2025
0.10.0 1 12/03/2025
0.10.0-pre2 1 12/03/2025
0.10.0-pre 1 12/03/2025
0.9.0 1 12/03/2025
0.9.0-pre 1 12/03/2025
0.8.0 1 12/03/2025
0.8.0-pre 1 12/03/2025
0.7.0 1 12/03/2025
0.6.4 1 12/03/2025
0.6.3 1 12/03/2025
0.6.2 1 12/03/2025
0.6.1 1 12/03/2025
0.6.0 1 12/03/2025
0.5.3 1 12/03/2025
0.5.2 1 12/03/2025
0.5.1 1 12/03/2025
0.5.0 1 12/03/2025
0.4.2 1 12/03/2025
0.4.1 1 12/03/2025
0.4.0 1 12/03/2025
0.4.0-pre2 1 12/03/2025
0.4.0-pre 1 12/03/2025
0.3.0-pre 1 12/03/2025
0.2.5 1 12/03/2025
0.2.4 1 12/03/2025
0.2.3 1 12/03/2025
0.2.2 1 12/03/2025
0.2.1 1 12/03/2025
0.2.0 1 12/03/2025
0.2.0-pre 1 12/03/2025
0.1.3 1 12/03/2025
0.1.2 0 05/12/2014
0.1.1 0 05/05/2014
0.1.0 1 12/03/2025