{"id":17190145,"url":"https://github.com/musgravejw/http_server","last_synced_at":"2025-03-25T05:42:36.303Z","repository":{"id":73548467,"uuid":"218118631","full_name":"musgravejw/http_server","owner":"musgravejw","description":"Micro HTTP Server","archived":false,"fork":false,"pushed_at":"2020-08-22T02:29:10.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T05:26:04.731Z","etag":null,"topics":["c","http","http-server"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"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/musgravejw.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":"2019-10-28T18:33:26.000Z","updated_at":"2020-08-22T02:29:12.000Z","dependencies_parsed_at":"2023-02-25T10:16:12.818Z","dependency_job_id":null,"html_url":"https://github.com/musgravejw/http_server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musgravejw%2Fhttp_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musgravejw%2Fhttp_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musgravejw%2Fhttp_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musgravejw%2Fhttp_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/musgravejw","download_url":"https://codeload.github.com/musgravejw/http_server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407755,"owners_count":20610232,"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","http","http-server"],"created_at":"2024-10-15T01:13:31.499Z","updated_at":"2025-03-25T05:42:36.280Z","avatar_url":"https://github.com/musgravejw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Server\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/musgravejw/http_server)\n\nOpens a TCP connection on `127.0.0.1:80`.\n\nServes files in the `www` directory.\n\n```shell\n.\n├── LICENSE\n├── Makefile\n├── README.md\n├── dist\n│   └── server\n├── src\n│   ├── parser.c\n│   └── server.c\n└── www\n    └── index.html\n\n3 directories, 7 files\n```\n\n## Install\n```shell\n$ make\n```\n\n## Usage\n```shell\n$ ./dist/server\n\nStarting server...\nListening on port 80...\n\n```\n\n## GET\n\n## Request\n\n```\nGET index.html HTTP/1.1\nHost: 127.0.0.1\nAccept: image/gif, image/jpeg\nAccept-Language: en-us\nAccept-Encoding: gzip, deflate\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\n```\n\n## Response\n\n```\nHTTP/1.1 200 OK\nLast-Modified: Sat, 20 Nov 2019 07:16:26 GMT\nETag: \"10000000565a5-2c-3e94b66c2e680\"\nAccept-Ranges: bytes\nContent-Length: 44\nConnection: close\nContent-Type: text/html\n[html document]\n```\n\n## License \n\n  * This project is licensed under a BSD 3-Clause License\n\nCopyright (c) 2019, John Musgrave All rights reserved.\n \n## Author\n\nWritten by John Musgrave.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusgravejw%2Fhttp_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusgravejw%2Fhttp_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusgravejw%2Fhttp_server/lists"}