{"id":17275035,"url":"https://github.com/waf/devserver","last_synced_at":"2025-10-26T08:34:01.899Z","repository":{"id":139307164,"uuid":"159049163","full_name":"waf/DevServer","owner":"waf","description":"Development server suitable for embedding in dotnet / corert applications.","archived":false,"fork":false,"pushed_at":"2018-11-25T16:02:04.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T10:48:33.825Z","etag":null,"topics":["corert","dev-server","developer-tools","http-server"],"latest_commit_sha":null,"homepage":"","language":"C#","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/waf.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":"2018-11-25T16:01:37.000Z","updated_at":"2025-05-19T12:08:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"fea54101-49d1-4abf-b534-a76bf18cb296","html_url":"https://github.com/waf/DevServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waf/DevServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waf%2FDevServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waf%2FDevServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waf%2FDevServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waf%2FDevServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waf","download_url":"https://codeload.github.com/waf/DevServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waf%2FDevServer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268649805,"owners_count":24284194,"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-08-04T02:00:09.867Z","response_time":79,"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":["corert","dev-server","developer-tools","http-server"],"created_at":"2024-10-15T08:55:16.847Z","updated_at":"2025-10-26T08:33:56.841Z","avatar_url":"https://github.com/waf.png","language":"C#","readme":"# Dev Server\n\nA very simple development server built on top of HttpListener. Intended to be embedded in command line applications.\n\n- Works in CoreRT with AOT compilation (no reflection). This is the [main benefit over embedding Kestrel](https://github.com/aspnet/Home/issues/3079).\n- Supports serving local files, default index.html, and directory listings \n- Supports a simple, optional \"live-reload\" workflow\n- targets dotnet standard\n- Fully async\n- About 350 lines of unit-tested, commented code.\n\n# Usage\n\n```csharp\nusing(var server = new HttpServer(\"C:\\path\\to\\webroot\\\", \"localhost\", 8080, enableAutorefresh: false))\n{\n    server.Start(CancellationToken.None); // or a cancellation token, if you require cancellation\n    Console.ReadKey(\"server started\");\n} // server will end when it is disposed or the cancellation token is triggered\n```\n\nIf you're using the autorefresh (i.e. \"live reload\"), call `server.SendClientRefresh()`\nto trigger a browser refresh. This is most often called in an event handler, like `FileSystemWatcher.Changed`.\n\n# Installing\n\nRight now there's no nuget package; if you want one, open a GitHub issue and I'll create a package!\n\n# Development\n\n- HttpServer: the main user entry point. Its responsibility is managing the .NET HttpListener API\n- RequestHandler: maps an http request to an http response\n- HttpServerResponse: a model of an http response, contains some static functions to create common response types, like static files or 404 errors.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaf%2Fdevserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaf%2Fdevserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaf%2Fdevserver/lists"}