{"id":25944894,"url":"https://github.com/xirzo/httpparser","last_synced_at":"2025-03-04T08:19:38.445Z","repository":{"id":280170449,"uuid":"941133128","full_name":"xirzo/HttpParser","owner":"xirzo","description":"Http parser for recreational purposes","archived":false,"fork":false,"pushed_at":"2025-03-01T18:05:46.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T18:33:15.865Z","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}},"created_at":"2025-03-01T15:14:02.000Z","updated_at":"2025-03-01T18:05:49.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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241809784,"owners_count":20023834,"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":["http","parser"],"created_at":"2025-03-04T08:19:37.256Z","updated_at":"2025-03-04T08:19:38.438Z","avatar_url":"https://github.com/xirzo.png","language":"C","readme":"# 🚀 HTTP Parser\n\n## 🚧 Project Status\n\n\u003e **Currently Under Development** - Core functionality is being implemented\n\nHTTP Parser is a C library made to parse HTTP requests. It was originally created to support [C-Website](https://github.com/xirzo/C-Website), a web server implementation written in C programming language. For recreational purposes only :).\n\n## ✨ Current 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## 🔮 Roadmap\n\nEnhancements planned for this library:\n\n- 📋 Complete HTTP header parsing\n- 📦 HTTP request body handling\n\n## 📥 Installation Guide\n\nTo build and install the HTTP Parser library, follow these steps:\n\n### Prerequisites\n\n- **CMake** (version 3.31.4 or higher)\n- **C Compiler** (e.g., `gcc`, `clang`)\n- **Make**\n\n### Step 1: Clone the Repository\n\nClone the repository to your local machine:\n\n```bash\ngit clone https://github.com/your-username/http-parser.git\ncd http-parser\n```\n\n### Step 2: Configure the Project with CMake\n\nCreate a build directory and configure the project:\n\n```bash\nmkdir build\ncd build\ncmake ..\n```\n\n#### Step 2.1: Optionally you can build examples/tests\n\n```bash\ncmake -DHTTP_PARSER_BUILD_EXAMPLES=ON -DHTTP_PARSER_BUILD_TESTS=ON ..\n```\n\nThis will generate the necessary build files.\n\n### Step 3: Build the Project\n\nCompile the project using `make`:\n\n```bash\nmake\n```\n\nThis will build the library and any associated binaries or tests.\n\n### Step 4: Install the Library (Optional)\n\nTo install the library system-wide, run:\n\n```bash\nsudo make install\n```\n\n### Step 5: Uninstall the Library (If needed)\n\nIf you need to remove the library from your system:\n\n```bash\nsudo make uninstall\n```\n\n### 🔗 Linking with Your Project\n\n#### Using CMake\n\nAdd the following to your CMakeLists.txt:\n\n```cmake\nfind_package(HttpParser REQUIRED)\n\n# Link to your target\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    // Future versions will support full request parsing\n    // req = parse_http_request(request);\n    \n    free_http_request(req);\n}\n```\n\n## 🔗 Related Projects\n\n- [C-Website](https://github.com/xirzo/C-Website) - A web server written entirely in C\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"}