{"id":15392955,"url":"https://github.com/pimbrouwers/httipi","last_synced_at":"2025-03-27T23:42:46.099Z","repository":{"id":70794969,"uuid":"101225721","full_name":"pimbrouwers/httipi","owner":"pimbrouwers","description":"💻 Makes HTTP requests a little simpler and (maybe) faster.","archived":false,"fork":false,"pushed_at":"2018-11-08T13:40:38.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T19:51:25.205Z","etag":null,"topics":["api","http","http-requests","json"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pimbrouwers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2017-08-23T21:16:14.000Z","updated_at":"2019-04-10T08:51:31.000Z","dependencies_parsed_at":"2023-03-07T11:00:44.538Z","dependency_job_id":null,"html_url":"https://github.com/pimbrouwers/httipi","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":0.1515151515151515,"last_synced_commit":"9743dc1bc810a10eb6a8d1e2b9d90260682762cd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimbrouwers%2Fhttipi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimbrouwers%2Fhttipi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimbrouwers%2Fhttipi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimbrouwers%2Fhttipi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pimbrouwers","download_url":"https://codeload.github.com/pimbrouwers/httipi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944063,"owners_count":20697948,"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":["api","http","http-requests","json"],"created_at":"2024-10-01T15:16:49.898Z","updated_at":"2025-03-27T23:42:46.066Z","avatar_url":"https://github.com/pimbrouwers.png","language":"C#","readme":"# httipi\nA .NET Standard compliant set of extenions methods for `System.Net.HttpClient` that makes making HTTP requests much much simpler. Includes a fluent `HttpRequestMessage` builder.\n\nCompression is automatically enabled if available (from response headers) and streams are used throughout the stack to ensure large requests are handled appropriately.\n\n![NuGet Version](https://img.shields.io/nuget/v/Httipi.svg)\n[![Build Status](https://travis-ci.org/pimbrouwers/httipi.svg?branch=master)](https://travis-ci.org/pimbrouwers/httipi)\n\n## Getting Started\nA simple example to execute a `GET` request deserializing JSON to CLR object using [Json.NET](https://github.com/JamesNK/Newtonsoft.Json)\n```csharp\nvar http = new HttpClient();\nvar someObject = JsonConvert.DeserializeObject(await http.GetString(\"http://someurl.com\"));\n```\n\nA more complex `PATCH` request with a JSON request body and an HMAC authorization header.\n```csharp\nvar http = new HttpClient();\nstring json = JsonConvert.SerializeObject(new { someProperty = \"newPropertyValue\" }); \n\nvar req = new HTTipiRequestBuilder().SetUrl(\"http://someurl.com\")\n                                    .SetMethod(new HttpMethod(\"PATCH\"))\n                                    .WithContent(new StringContent(json, Encoding.UTF8, \"application/json\"))\n                                    .AddHeader(\"Authorization\", \"hmac somecrazylonghmackey\")\n\nawait http.Execute(req);\n```\n\nException handling.\n```csharp\nvar http = new HttpClient();\n\ntry\n{\n  var someObject = JsonConvert.DeserializeObject(await http.GetString(\"http://someurl.com\"));\n}\ncatch (HTTipiException ex)\n{\n  //logging\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimbrouwers%2Fhttipi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimbrouwers%2Fhttipi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimbrouwers%2Fhttipi/lists"}