Flurl.Http 4.0.1

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
Quantum.Framework.Core.StandardLib
Package Description
44
Quantum.Framework.Core.StandardLib
Package Description
45
Quantum.Framework.Core.StandardLib
Package Description
47
Quantum.Framework.Core.StandardLib
Package Description
50
Quantum.Framework.Core.StandardLib
Package Description
51
Quantum.Framework.Core.StandardLib
Package Description
54
Quantum.Framework.Core.StandardLib
Package Description
55
Quantum.Framework.Core.StandardLib
Package Description
58
Quantum.Framework.Core.StandardLib
Package Description
62
Quantum.Framework.Core.StandardLib
Package Description
64
Quantum.Framework.Core.StandardLib
Package Description
74
Quantum.Framework.Core.StandardLib
Package Description
77
Quantum.Framework.Core.StandardLib
Package Description
114
Quantum.Framework.Core.StandardLib
Package Description
153
Quantum.Framework.Core.StandardLib
Package Description
159
Quantum.Framework.Core.StandardLib
Package Description
167

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 69 04/16/2024
4.0.1 5 04/16/2024
4.0.0 4 04/16/2024
4.0.0-pre7 6 04/16/2024
4.0.0-pre6 3 04/16/2024
4.0.0-pre5 5 04/16/2024
4.0.0-pre4 0 10/09/2023
4.0.0-pre3 0 12/20/2022
4.0.0-pre2 5 05/20/2024
4.0.0-pre1 0 06/05/2022
3.2.4 30 06/06/2022
3.2.4-pre2 7 06/06/2022
3.2.4-pre1 6 06/06/2022
3.2.3 13,625 05/11/2022
3.0.0-pre1 0 11/09/2019
2.3.1 5 05/17/2024
2.1.1 5 06/06/2022
1.2.0-pre 4 05/16/2024
1.1.1-pre 0 11/24/2016
1.0.1 6 06/13/2022
0.6.2 6 06/06/2022
0.6.1 6 05/09/2022
0.6.0 0 03/28/2015
0.4.0-pre 6 06/06/2022
0.2.4 0 08/29/2014
0.2.1 0 06/19/2014
0.1.3 0 05/31/2014
0.1.2 0 05/12/2014
0.1.1 0 05/05/2014