Popularity
8.3
Growing
Activity
6.0
Declining
2,823
101
273

Code Quality Rank: L4
Programming language: C#
License: MIT License
Tags: HTTP     JSON     TDD     Assert     REST     Async     Fluent     Httpclient     Portable     URL     Uri    
Latest version: v3.0.0

Flurl.Http alternatives and similar packages

Based on the "HTTP" category.
Alternatively, view Flurl.Http alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Flurl.Http or a related project?

Add another 'HTTP' Package

README

Flurl

Build status Flurl-stable Flurl.Http-stable Flurl-pre-release Flurl.Http-pre-release

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("Claire", "Underwood");

        // 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.