{"id":25944894,"url":"https://github.com/xirzo/httpparser","last_synced_at":"2026-04-19T07:40:07.254Z","repository":{"id":280170449,"uuid":"941133128","full_name":"xirzo/HttpParser","owner":"xirzo","description":"Http parser for recreational purposes","archived":false,"fork":false,"pushed_at":"2025-05-08T20:58:06.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T21:47:07.669Z","etag":null,"topics":["http","parser"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xirzo.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,"zenodo":null}},"created_at":"2025-03-01T15:14:02.000Z","updated_at":"2025-05-08T20:58:09.000Z","dependencies_parsed_at":"2025-03-01T18:33:19.590Z","dependency_job_id":"540af8c3-9356-48e4-8be5-c21060ec7b51","html_url":"https://github.com/xirzo/HttpParser","commit_stats":null,"previous_names":["xirzo/httpparser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xirzo/HttpParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHttpParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHttpParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHttpParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHttpParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xirzo","download_url":"https://codeload.github.com/xirzo/HttpParser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FHttpParser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31999173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["http","parser"],"created_at":"2025-03-04T08:19:37.256Z","updated_at":"2026-04-19T07:40:07.246Z","avatar_url":"https://github.com/xirzo.png","language":"C","readme":"HTTP Parser is a C library made to parse HTTP requests. It was originally created to support [C-Website](https://github.com/xirzo/C-Website).  For recreational purposes only :).\n\n## Features\n\n- HTTP request status line parsing\n- Support for standard HTTP methods (GET, POST, PUT, DELETE, etc.)\n- HTTP version detection (HTTP/0.9 through HTTP/3)\n\n## Building\n\nClone the repository\n\n```sh\ngit clone https://github.com/xirzo/httpparser.git\ncd httpparser\n```\n\n```sh\ncmake -DHTTP_PARSER_BUILD_EXAMPLES=ON -DHTTP_PARSER_BUILD_TESTS=ON -B build/\n```\n\n```sh\ncmake --build build/\n```\n\n## Install\n\nTo install the library system-wide use\n\n```sh\ncd build\nsudo make install\n```\n\n### Finding with CMake\n\nAdd the following to your CMakeLists.txt:\n\n```cmake\nfind_package(HttpParser REQUIRED)\n\ntarget_link_libraries(your_target PRIVATE HttpParser::http_parser)\n```\n\n---\n\n## Usage\n\n```c\n#include \"http_parser.h\"\n\nvoid example() {\n    char request[] = \"GET /index.html HTTP/1.1\\r\\n\"; \n    HttpRequest *req;\n    init_http_request(\u0026req);\n    \n    parse_request_line(req, request);\n    \n    // req = parse_http_request(request);\n    \n    free_http_request(req);\n}\n```\n\n## 🔗 Related Projects\n\n- [WebsiteInC](https://github.com/xirzo/WebsiteInC)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxirzo%2Fhttpparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxirzo%2Fhttpparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxirzo%2Fhttpparser/lists"}