{"id":18051603,"url":"https://github.com/kenta-shimizu/httpjava8","last_synced_at":"2025-04-05T07:12:45.650Z","repository":{"id":108361735,"uuid":"196191481","full_name":"kenta-shimizu/httpjava8","owner":"kenta-shimizu","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-21T13:44:05.000Z","size":142,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T14:52:53.830Z","etag":null,"topics":["http"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenta-shimizu.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-07-10T11:19:36.000Z","updated_at":"2020-10-31T19:14:34.000Z","dependencies_parsed_at":"2023-03-06T13:15:15.455Z","dependency_job_id":null,"html_url":"https://github.com/kenta-shimizu/httpjava8","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/kenta-shimizu%2Fhttpjava8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenta-shimizu%2Fhttpjava8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenta-shimizu%2Fhttpjava8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenta-shimizu%2Fhttpjava8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenta-shimizu","download_url":"https://codeload.github.com/kenta-shimizu/httpjava8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299850,"owners_count":20916193,"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"],"created_at":"2024-10-30T22:51:05.843Z","updated_at":"2025-04-05T07:12:45.628Z","avatar_url":"https://github.com/kenta-shimizu.png","language":"Java","readme":"# httpjava8\n\n## Introduction\n\nThis library is template of Http Server that runs only on Java8+.  \nUse to create simple API HTTP Server.\n\n\n## for HTTP Server\n\n### Open General HTTP Server\n\n```\n    final HttpVersion1p1AsynchronousSocketChannelServerConfig serverConfig = new HttpVersion1p1AsynchronousSocketChannelServerConfig();\n    serverConfig.addBind(new InetSocketAddress(\"127.0.0.1\", 8080));\n\n    final GeneralFileHttpVersion1p1ServerServiceConfig generalFileConfig = new GeneralFileHttpVersion1p1ServerServiceConfig();\n    generalFileConfig.serverName(\"HTTP-GENERAL-SERVER\");\n    generalFileConfig.serverRoot(Paths.get(\"/path/to/root-directory\"));\n    generalFileConfig.addDirectoryIndexFile(\"index.html\");\n                \n    HttpServer server = new HttpVersion1p1AsynchronousSocketChannelServer(serverConfig);\n\n    server.addServerService(new GeneralFileHttpVersion1p1ServerService(generalFileConfig));\n\n    server.open();\n```\n\nSee also [\"/src/examples/example1/ExampleHttpGeneralServer.java\"](/src/examples/example1/)\n\n\n### Create API HTTP Server\n\nImplements ```HttpServerService```  \nSee [\"/src/examples/example2/Example2.java\"](/src/examples/example2/)\n\n\n## for HTTP  Client\n\nUse \"java.net.http.HttpClient\" on Java11+ or other library.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenta-shimizu%2Fhttpjava8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenta-shimizu%2Fhttpjava8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenta-shimizu%2Fhttpjava8/lists"}