{"id":18350309,"url":"https://github.com/ollls/hello-http","last_synced_at":"2025-04-09T23:51:26.884Z","repository":{"id":153204276,"uuid":"346800881","full_name":"ollls/hello-http","owner":"ollls","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-20T21:39:53.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T23:51:21.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ollls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-03-11T18:34:44.000Z","updated_at":"2023-02-08T00:27:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"996b0ca4-e9c1-457b-b275-6f9e06c550d9","html_url":"https://github.com/ollls/hello-http","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollls%2Fhello-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollls%2Fhello-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollls%2Fhello-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollls%2Fhello-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ollls","download_url":"https://codeload.github.com/ollls/hello-http/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131455,"owners_count":21052819,"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":[],"created_at":"2024-11-05T21:26:03.726Z","updated_at":"2025-04-09T23:51:26.863Z","avatar_url":"https://github.com/ollls.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-http\nto run: sbt run\n\nServer code:\nhttps://github.com/ollls/hello-http/blob/main/src/main/scala/example/Hello.scala\n\nShorter example:\n```scala\npackage example\nimport zio.logging.backend.SLF4J\nimport zio.{ZIO, Chunk}\nimport zhttp.Method._\nimport zhttp.dsl._\nimport zhttp.{TLSServer, TcpServer, HttpRoutes}\nimport zhttp.{MultiPart, Headers, ContentType, Response, FileUtils}\n\nobject MyApp extends zio.ZIOAppDefault {\n\n  override val bootstrap =\n    zio.Runtime.removeDefaultLoggers ++ SLF4J.slf4j ++ zio.Runtime.enableWorkStealing\n    \n  val r = HttpRoutes.of { case GET -\u003e Root / \"health\" =\u003e\n    ZIO.attempt(Response.Ok().asTextBody(\"Health Check Ok\"))\n  }\n  val myHttp =\n    new TcpServer[Any](port = 8080, keepAlive = 2000, serverIP = \"0.0.0.0\")\n  val run = myHttp.run(r)\n}\n\n```\nTo enable more detailed logging, use logback-test.xml with \"debug\" or \"trace\" levels\n\n```xml\n  \u003croot level=\"debug\"\u003e\n    \u003cappender-ref ref=\"STDOUT\" /\u003e\n  \u003c/root\u003e\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Follls%2Fhello-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Follls%2Fhello-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Follls%2Fhello-http/lists"}