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
Quantum.Framework.Core.StandardLib
Package Description
41
Quantum.Framework.Core.StandardLib
Package Description
44
Quantum.Framework.Core.StandardLib
Package Description
46
Quantum.Framework.Core.StandardLib
Package Description
47
Quantum.Framework.Core.StandardLib
Package Description
48
Quantum.Framework.Core.StandardLib
Package Description
51
Quantum.Framework.Core.StandardLib
Package Description
54
Quantum.Framework.Core.StandardLib
Package Description
57
Quantum.Framework.Core.StandardLib
Package Description
61
Quantum.Framework.Core.StandardLib
Package Description
70
Quantum.Framework.Core.StandardLib
Package Description
71
Quantum.Framework.Core.StandardLib
Package Description
110
Quantum.Framework.Core.StandardLib
Package Description
149
Quantum.Framework.Core.StandardLib
Package Description
157
Quantum.Framework.Core.StandardLib
Package Description
164

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 66 04/16/2024
4.0.1 3 04/16/2024
4.0.0 3 04/16/2024
4.0.0-pre7 3 04/16/2024
4.0.0-pre6 2 04/16/2024
4.0.0-pre5 4 04/16/2024
4.0.0-pre2 3 05/20/2024
3.2.4 23 06/06/2022
3.2.4-pre2 6 06/06/2022
3.2.4-pre1 5 06/06/2022
3.2.3 13,609 05/11/2022
2.3.1 3 05/17/2024
2.1.1 3 06/06/2022
1.2.0-pre 3 05/16/2024
1.0.1 4 06/13/2022
0.6.2 5 06/06/2022
0.6.1 4 05/09/2022
0.4.0-pre 3 06/06/2022