{"id":45649349,"url":"https://github.com/lamarrr/swish","last_synced_at":"2026-02-24T04:54:59.433Z","repository":{"id":45959760,"uuid":"159081887","full_name":"lamarrr/swish","owner":"lamarrr","description":"C++ HTTP requests for humans","archived":false,"fork":false,"pushed_at":"2021-11-24T11:33:00.000Z","size":53,"stargazers_count":63,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T02:37:10.201Z","etag":null,"topics":["cpp","cpp17","http","http-client","http-proxy","http-requests"],"latest_commit_sha":null,"homepage":"","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/lamarrr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"lamarrr","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-11-25T22:46:27.000Z","updated_at":"2024-01-08T05:50:40.000Z","dependencies_parsed_at":"2022-08-31T11:00:21.839Z","dependency_job_id":null,"html_url":"https://github.com/lamarrr/swish","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lamarrr/swish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamarrr%2Fswish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamarrr%2Fswish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamarrr%2Fswish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamarrr%2Fswish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamarrr","download_url":"https://codeload.github.com/lamarrr/swish/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamarrr%2Fswish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29772150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","cpp17","http","http-client","http-proxy","http-requests"],"created_at":"2026-02-24T04:54:54.339Z","updated_at":"2026-02-24T04:54:59.428Z","avatar_url":"https://github.com/lamarrr.png","language":"C++","funding_links":["https://patreon.com/lamarrr"],"categories":[],"sub_categories":[],"readme":"# Swish\n ![](assets/icon.png) \n \n## Overview \nSwish is a Modern C++ 17 HTTP client library for Humans\n\nSwish is for the most parts, A simple libcurl wrapper which provides, data structures and type safe OOP abstractions to make operating with libcurl much easier and pain free as compared to error-prone manual manipulation of net. sockets.\n\n\n## Features\n- Provides implementations for GET, POST (Multipart and Form Fields), DELETE, HEAD, TRACE etc.\n- Fast file download\n- Simple and expressive API (type safe OOP)\n- Byte type customization\n- Almost zero cost abstraction\n- Supports local file://location\n- Custom data structures for ease of use\n- Proxy and OAuth support\n\n## Installation\n- Install libcurl (7.60.0 or higher)\n- clone this repo\n- build and install using cmake e.g. For linux users\n\t\n```bash\t\nuser@pc:~$ cmake .\nuser@pc:~$ sudo make install\n```\n\n- *or* copy the *swish* directory to your project's local or global include path\n\n\n## Quick Start\n\n```cpp\n/**\n * @file: example.cc\n *\n */\n#include \u003cswish/swish.h\u003e\n\nusing namespace swish;\n\nint main() {\n  // create a new HTTP client\n  auto client = Client();\n\n  // Perform request\n  auto [response, status] = client.Get(\"https://github.com\");\n\n  // Check if any errors occured\n  if (IsOK(status)) {\n    // convert body buffer to std::basic_string\u003cchar\u003e aka std::string\n    std::cout \u003c\u003c response.body.ToString() \u003c\u003c \"\\n\";\n\n  } else {\n    // Interpret status code to english\n    std::cerr \u003c\u003c \"The following Error occured: \" \u003c\u003c InterpretStatusCode(status)\n              \u003c\u003c \"\\n\";\n  }\n\n  return EXIT_SUCCESS;\n}\n```\n\n\n## Building\nSwish depends on libcurl, ensure you have an active installation.\nCompile with the -lcurl postfix flag e.g in clang :\n\t\n```bash\nuser@pc:~$ clang++ -std=c++17 example.cc -o example.o -lcurl\nuser@pc:~$ clang++ -std=c++17 example.cc -o example.o -lcurl\nuser@pc:~$ ./example.o\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamarrr%2Fswish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamarrr%2Fswish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamarrr%2Fswish/lists"}