{"id":17216636,"url":"https://github.com/nikkiii/embedhttp","last_synced_at":"2026-03-02T12:06:35.350Z","repository":{"id":6343125,"uuid":"7579271","full_name":"nikkiii/embedhttp","owner":"nikkiii","description":"A small, flexible and secure Java HTTP server which can be easily embedded into applications","archived":false,"fork":false,"pushed_at":"2015-11-04T23:54:36.000Z","size":383,"stargazers_count":30,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-20T17:12:16.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/nikkiii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-12T19:05:58.000Z","updated_at":"2021-02-12T22:49:27.000Z","dependencies_parsed_at":"2022-08-06T19:15:30.436Z","dependency_job_id":null,"html_url":"https://github.com/nikkiii/embedhttp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nikkiii/embedhttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkiii%2Fembedhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkiii%2Fembedhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkiii%2Fembedhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkiii%2Fembedhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikkiii","download_url":"https://codeload.github.com/nikkiii/embedhttp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkiii%2Fembedhttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30001654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T11:09:27.951Z","status":"ssl_error","status_checked_at":"2026-03-02T11:08:53.255Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-15T03:28:14.958Z","updated_at":"2026-03-02T12:06:35.334Z","avatar_url":"https://github.com/nikkiii.png","language":"Java","funding_links":[],"categories":["Web服务器"],"sub_categories":["微服务框架"],"readme":"# Embeddable Java Httpd\n\nA small and easily embeddable Java Http server for use in applications.\n\n[![Build Status](https://travis-ci.org/nikkiii/embedhttp.svg?branch=master)](https://travis-ci.org/nikkiii/embedhttp)\n\n## Requirements\n\n- Java Development Kit/Java Runtime Environment 1.6+ (Could work in 1.5?)\n\n## Usage\n\n\tHttpServer server = new HttpServer();\n\t\n\t//~ Add any request handlers\n\t// static file handler (from jar's resources) :\n\tserver.addRequestHandler(new HttpStaticJarFileHandler());\n    // static file handler (from jar's resources with path) :\n    server.addRequestHandler(new HttpStaticJarFileHandler(\"/assets/http/\"));\n\t// static file handler (from filesystem) :\n\tserver.addRequestHandler(new HttpStaticFileHandler(new File(\".\")));\n\t//Or your own:\n\tserver.addRequestHandler(new HttpRequestHandler() {\n\t\t@Override\n\t\tpublic HttpResponse handleRequest(HttpRequest request) {\n\t\t\treturn new HttpResponse(HttpStatus.OK, \"Hello, world!\");\n\t\t}\n\t});\n\tserver.bind(8081);\n\tserver.start();\n\t\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Nikki\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkiii%2Fembedhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikkiii%2Fembedhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkiii%2Fembedhttp/lists"}