{"id":13429477,"url":"https://github.com/tmenier/Flurl","last_synced_at":"2025-03-16T03:31:37.146Z","repository":{"id":14190554,"uuid":"16897008","full_name":"tmenier/Flurl","owner":"tmenier","description":"Fluent URL builder and testable HTTP client for .NET","archived":false,"fork":false,"pushed_at":"2025-01-01T23:14:30.000Z","size":5560,"stargazers_count":4281,"open_issues_count":56,"forks_count":391,"subscribers_count":99,"default_branch":"dev","last_synced_at":"2025-03-12T07:06:21.182Z","etag":null,"topics":["c-sharp","dotnet","http","rest-client","url-builder"],"latest_commit_sha":null,"homepage":"https://flurl.dev","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmenier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tmenier"}},"created_at":"2014-02-16T23:43:15.000Z","updated_at":"2025-03-12T05:19:51.000Z","dependencies_parsed_at":"2023-10-20T18:31:53.166Z","dependency_job_id":"ab1691ff-0a5a-41ea-8a5c-57f876756b08","html_url":"https://github.com/tmenier/Flurl","commit_stats":null,"previous_names":[],"tags_count":118,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmenier%2FFlurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmenier%2FFlurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmenier%2FFlurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmenier%2FFlurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmenier","download_url":"https://codeload.github.com/tmenier/Flurl/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822310,"owners_count":20353496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","dotnet","http","rest-client","url-builder"],"created_at":"2024-07-31T02:00:40.207Z","updated_at":"2025-03-16T03:31:36.777Z","avatar_url":"https://github.com/tmenier.png","language":"C#","readme":"# Flurl\n\n[![build](https://github.com/tmenier/Flurl/actions/workflows/ci.yml/badge.svg)](https://github.com/tmenier/Flurl/actions/workflows/ci.yml)\n[![NuGet Version](http://img.shields.io/nuget/v/Flurl.Http.svg?style=flat)](https://www.nuget.org/packages/Flurl.Http/)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/Flurl.Http.svg)](https://www.nuget.org/packages/Flurl.Http/)\n\nFlurl is a modern, fluent, asynchronous, testable, portable, buzzword-laden URL builder and HTTP client library.\n\n```cs\nvar result = await \"https://api.mysite.com\"\n    .AppendPathSegment(\"person\")\n    .SetQueryParams(new { api_key = \"xyz\" })\n    .WithOAuthBearerToken(\"my_oauth_token\")\n    .PostJsonAsync(new { first_name = firstName, last_name = lastName })\n    .ReceiveJson\u003cT\u003e();\n\n[Test]\npublic void Can_Create_Person() {\n    // fake \u0026 record all http calls in the test subject\n    using var httpTest = new HttpTest();\n\n    // arrange\n    httpTest.RespondWith(\"OK\", 200);\n\n    // act\n    await sut.CreatePersonAsync(\"Frank\", \"Reynolds\");\n        \n    // assert\n    httpTest.ShouldHaveCalled(\"http://api.mysite.com/*\")\n        .WithVerb(HttpMethod.Post)\n        .WithContentType(\"application/json\");\n}\n```\n\nGet it on NuGet:\n\n`PM\u003e Install-Package Flurl.Http`\n\nOr get just the stand-alone URL builder without the HTTP features:\n\n`PM\u003e Install-Package Flurl`\n\nFor updates and announcements, [follow @FlurlHttp on Twitter](https://twitter.com/intent/user?screen_name=FlurlHttp).\n\nFor detailed documentation, please visit the [main site](https://flurl.dev). \n","funding_links":["https://github.com/sponsors/tmenier"],"categories":["Frameworks, Libraries and Tools","C\\#","C#","C# #","Http Client Communication","Network","框架, 库和工具","http","API","算法与数据结构","🗒️ Cheatsheets"],"sub_categories":["API","📦 Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmenier%2FFlurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmenier%2FFlurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmenier%2FFlurl/lists"}