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
104
Flurl.Http.Xml
XML extensions to Flurl.Http
114

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 115 07/23/2024
4.0.1 95 07/23/2024
4.0.0 99 07/23/2024
4.0.0-pre7 109 07/23/2024
4.0.0-pre6 106 07/23/2024
4.0.0-pre5 106 07/23/2024
4.0.0-pre4 93 07/23/2024
4.0.0-pre3 112 07/23/2024
4.0.0-pre2 106 07/23/2024
4.0.0-pre1 113 07/23/2024
3.2.4 101 07/23/2024
3.2.4-pre2 103 07/23/2024
3.2.4-pre1 105 07/23/2024
3.2.3 103 07/23/2024
3.2.2 106 07/23/2024
3.2.1 119 07/23/2024
3.2.0 120 07/23/2024
3.0.1 103 07/23/2024
3.0.0 115 07/23/2024
3.0.0-pre6 109 07/23/2024
3.0.0-pre5 117 07/23/2024
3.0.0-pre4 109 07/23/2024
3.0.0-pre3 113 07/23/2024
3.0.0-pre2 89 07/23/2024
3.0.0-pre1 92 07/23/2024
2.4.2 102 07/23/2024
2.4.1 108 07/23/2024
2.4.0 115 07/23/2024
2.4.0-pre 93 07/23/2024
2.3.2 95 07/23/2024
2.3.1 115 07/23/2024
2.3.0 96 07/23/2024
2.3.0-pre1 98 07/23/2024
2.2.1 95 07/23/2024
2.2.0 107 07/23/2024
2.2.0-pre2 97 07/23/2024
2.2.0-pre1 112 07/23/2024
2.1.1 96 07/23/2024
2.1.0 100 07/23/2024
2.1.0-pre 118 07/23/2024
2.0.1 92 07/23/2024
2.0.0 103 07/23/2024
2.0.0-pre4 95 08/11/2024
2.0.0-pre3 94 07/23/2024
2.0.0-pre2 108 07/23/2024
2.0.0-pre1 100 07/23/2024
1.2.0 109 07/23/2024
1.2.0-pre 108 07/23/2024
1.1.3 85 07/23/2024
1.1.2 99 07/23/2024
1.1.1 91 07/23/2024
1.1.1-pre 102 07/23/2024
1.1.0-pre 89 07/23/2024
1.0.3 105 07/23/2024
1.0.2 111 07/23/2024
1.0.1 90 07/23/2024
1.0.0 104 07/23/2024
1.0.0-beta9 109 07/23/2024
1.0.0-beta8 101 07/23/2024
1.0.0-beta7 127 07/23/2024
0.10.1 97 07/23/2024
0.10.0 110 07/23/2024
0.10.0-pre2 110 07/23/2024
0.10.0-pre 111 07/23/2024
0.9.0 113 07/23/2024
0.9.0-pre 101 07/23/2024
0.8.0 127 07/23/2024
0.8.0-pre 107 07/23/2024
0.7.0 108 07/23/2024
0.6.4 95 07/23/2024
0.6.3 104 07/23/2024
0.6.2 97 07/23/2024
0.6.1 99 07/23/2024
0.6.0 108 07/23/2024
0.5.3 102 07/23/2024
0.5.2 102 07/23/2024
0.5.1 109 07/23/2024
0.5.0 113 07/23/2024
0.4.2 98 07/23/2024
0.4.1 113 07/23/2024
0.4.0 100 07/23/2024
0.4.0-pre2 94 07/23/2024
0.4.0-pre 99 07/23/2024
0.3.0-pre 110 07/23/2024
0.2.5 90 07/23/2024
0.2.4 96 07/23/2024
0.2.3 119 07/23/2024
0.2.2 93 07/23/2024
0.2.1 102 07/23/2024
0.2.0 100 07/23/2024
0.2.0-pre 90 07/23/2024
0.1.3 110 07/23/2024
0.1.2 0 05/12/2014
0.1.1 0 05/05/2014
0.1.0 98 07/23/2024