{"id":23160812,"url":"https://github.com/v0l/ahws","last_synced_at":"2025-07-24T21:33:04.676Z","repository":{"id":144153545,"uuid":"102628127","full_name":"v0l/ahws","owner":"v0l","description":"Asynchronous Http Web Server","archived":false,"fork":false,"pushed_at":"2018-09-05T15:32:43.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-15T05:19:28.381Z","etag":null,"topics":["async","http","http-server","net-core-2","server","websocket","websocket-server"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/v0l.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":"2017-09-06T15:49:15.000Z","updated_at":"2018-12-30T05:41:51.000Z","dependencies_parsed_at":"2023-08-10T15:01:58.473Z","dependency_job_id":null,"html_url":"https://github.com/v0l/ahws","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/v0l/ahws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0l%2Fahws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0l%2Fahws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0l%2Fahws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0l%2Fahws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v0l","download_url":"https://codeload.github.com/v0l/ahws/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0l%2Fahws/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266905335,"owners_count":24004142,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["async","http","http-server","net-core-2","server","websocket","websocket-server"],"created_at":"2024-12-17T23:12:11.674Z","updated_at":"2025-07-24T21:33:04.605Z","avatar_url":"https://github.com/v0l.png","language":"C#","readme":"AHWS \n==\n\nAsync Http Web Server\n\nSimple to use Async webserver with websocket support\n\nExample Http Server\n===\n```\nHttpServer s = new HttpServer(8080);\ns.OnLog += Console.WriteLine;\ns.Options = HttpServerOptions.GZip | HttpServerOptions.KeepAlive;\n\ns.AddRoute(\"/\", (h) =\u003e {\n\tvar rsp = h.Request.CreateResponse(HttpStatus.OK);\n\n\trsp.Content = new HttpContent(Encoding.UTF8.GetBytes(\"\u003ch1\u003eHello world!\u003c/h1\u003e\"));\n\trsp.Headers.ContentType = \"text/html\";\n\n\treturn rsp;\n});\n\ns.Start();\n```\n\nExample Websocket Echo\n===\n```\nHttpServer s = new HttpServer(8080);\n\nWebsocketServer ws = new WebsocketServer();\nws.OnWebsocketConnect += (w) =\u003e\n{\n    w.OnFrame += async (f) =\u003e \n    {\n        //send the frame back\n        await f.WebSocket.SendFrame(f.Frame);\n    };\n    w.Start();\n};\n\ns.OnLog += Console.WriteLine;\ns.Options = HttpServerOptions.GZip | HttpServerOptions.KeepAlive;\n\ns.AddRoute(\"/ws\", ws.WebsocketUpgrade);\n\ns.Start();\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv0l%2Fahws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv0l%2Fahws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv0l%2Fahws/lists"}