https://github.com/mayuki/misuzilla.aspnetcore.server.cgi
Implementation of a CGI server adapter for ASP.NET Core.
https://github.com/mayuki/misuzilla.aspnetcore.server.cgi
aspnetcore cgi dotnet
Last synced: 9 months ago
JSON representation
Implementation of a CGI server adapter for ASP.NET Core.
- Host: GitHub
- URL: https://github.com/mayuki/misuzilla.aspnetcore.server.cgi
- Owner: mayuki
- License: mit
- Created: 2024-11-29T02:56:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T05:26:13.000Z (over 1 year ago)
- Last Synced: 2025-04-20T05:27:37.344Z (11 months ago)
- Topics: aspnetcore, cgi, dotnet
- Language: C#
- Homepage:
- Size: 1.09 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Misuzilla.AspNetCore.Server.Cgi
Implementation of a CGI server adapter for ASP.NET Core.
This library will enable your ASP.NET Core application to be used with CGI.
> [!NOTE]
> This is a proof of concept, a toy, and is not intended for use in a production environment.
## How to use
Call `UseCGI` extension method of WebHost builder.
```csharp
var builder = WebApplication.CreateBuilder(args);
// Add: Enable CGI server implementation for ASP.NET Core.
builder.WebHost.UseCgi();
var app = builder.Build();
app.MapGet("/", () => "It works!");
app.Run();
```
## License
MIT License