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
SKIT.FlurlHttpClient.Common
SKIT.FlurlHttpClient 系列开发工具包的公共组件。完整组件请见 https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient
1
SKIT.FlurlHttpClient.Common
SKIT.FlurlHttpClient 系列开发工具包的公共组件。
1

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 1 2025/6/7
4.0.1 0 2024/1/10
4.0.0 1 2025/6/9
4.0.0-pre7 2 2025/5/24
4.0.0-pre6 0 2023/11/3
4.0.0-pre5 1 2025/6/8
4.0.0-pre4 1 2025/6/8
4.0.0-pre3 2 2025/5/28
4.0.0-pre2 1 2025/6/8
4.0.0-pre1 1 2025/6/8
3.2.4 1 2025/6/8
3.2.4-pre2 1 2025/6/8
3.2.4-pre1 1 2025/6/8
3.2.3 1 2025/6/8
3.2.2 1 2025/6/8
3.2.1 1 2025/6/8
3.2.0 1 2025/6/8
3.0.1 0 2020/12/14
3.0.0 0 2020/11/1
3.0.0-pre6 1 2025/6/8
3.0.0-pre5 1 2025/6/8
3.0.0-pre4 1 2025/6/8
3.0.0-pre3 1 2025/6/8
3.0.0-pre2 1 2025/6/8
3.0.0-pre1 1 2025/6/8
2.4.2 1 2025/6/8
2.4.1 1 2025/6/8
2.4.0 1 2025/6/8
2.4.0-pre 1 2025/6/8
2.3.2 1 2025/6/8
2.3.1 1 2025/6/8
2.3.0 0 2018/4/5
2.3.0-pre1 1 2025/6/8
2.2.1 1 2025/6/8
2.2.0 1 2025/6/8
2.2.0-pre2 1 2025/6/8
2.2.0-pre1 1 2025/6/9
2.1.1 1 2025/6/8
2.1.0 1 2025/6/8
2.1.0-pre 1 2025/6/8
2.0.1 1 2025/6/8
2.0.0 0 2017/10/6
2.0.0-pre4 1 2025/6/8
2.0.0-pre3 1 2025/6/8
2.0.0-pre2 1 2025/6/8
2.0.0-pre1 1 2025/6/8
1.2.0 2 2025/6/8
1.2.0-pre 1 2025/6/8
1.1.3 1 2025/6/8
1.1.2 1 2025/6/8
1.1.1 2 2025/5/26
1.1.1-pre 1 2025/6/8
1.1.0-pre 1 2025/6/8
1.0.3 0 2016/9/22
1.0.2 1 2025/6/8
1.0.1 1 2025/6/9
1.0.0 0 2016/7/18
1.0.0-beta9 1 2025/6/8
1.0.0-beta8 1 2025/6/8
1.0.0-beta7 1 2025/6/8
0.10.1 0 2016/5/25
0.10.0 0 2016/5/15
0.10.0-pre2 3 2025/5/26
0.10.0-pre 2 2025/5/29
0.9.0 0 2016/4/21
0.9.0-pre 1 2025/6/8
0.8.0 0 2016/4/12
0.8.0-pre 1 2025/6/8
0.7.0 0 2015/9/20
0.6.4 0 2015/8/18
0.6.3 1 2025/6/9
0.6.2 1 2025/6/8
0.6.1 0 2015/6/11
0.6.0 0 2015/3/28
0.5.3 1 2025/5/28
0.5.2 0 2015/3/17
0.5.1 0 2015/3/16
0.5.0 0 2015/2/4
0.4.2 1 2025/6/8
0.4.1 2 2025/6/8
0.4.0 0 2014/12/16
0.4.0-pre2 1 2025/6/8
0.4.0-pre 1 2025/6/8
0.3.0-pre 1 2025/6/8
0.2.5 0 2014/12/8
0.2.4 1 2025/6/8
0.2.3 1 2025/6/8
0.2.2 1 2025/6/8
0.2.1 1 2025/6/8
0.2.0 0 2014/6/11
0.2.0-pre 1 2025/6/8
0.1.3 0 2014/5/31
0.1.2 0 2014/5/12
0.1.1 0 2014/5/5
0.1.0 0 2014/5/4