Skip to content

Commit ebed9ca

Browse files
Switch to internal engine, opt out of h2/h3
1 parent a48c2c6 commit ebed9ca

3 files changed

Lines changed: 6 additions & 21 deletions

File tree

frameworks/genhttp/Program.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
using System.Net;
2-
using System.Security.Cryptography.X509Certificates;
32

43
using genhttp;
54

6-
using GenHTTP.Engine.Kestrel;
7-
8-
var certPath = Environment.GetEnvironmentVariable("TLS_CERT") ?? "/certs/server.crt";
9-
var keyPath = Environment.GetEnvironmentVariable("TLS_KEY") ?? "/certs/server.key";
10-
var hasCert = File.Exists(certPath) && File.Exists(keyPath);
5+
using GenHTTP.Engine.Internal;
116

127
var app = Project.Create();
138

149
var host = Host.Create().Handler(app);
1510

1611
host.Bind(IPAddress.Any, 8080);
1712

18-
if (hasCert)
19-
{
20-
var cert = X509Certificate2.CreateFromPemFile(certPath, keyPath);
21-
host.Bind(IPAddress.Any, 8443, cert, enableQuic: true);
22-
}
23-
2413
await host.RunAsync();

frameworks/genhttp/genhttp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ServerGarbageCollection>true</ServerGarbageCollection>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="GenHTTP.Core.Kestrel" Version="10.5.0" />
9+
<PackageReference Include="GenHTTP.Core" Version="10.5.0" />
1010
<PackageReference Include="GenHTTP.Modules.Functional" Version="10.5.0" />
1111
<PackageReference Include="GenHTTP.Modules.IO" Version="10.5.0" />
1212
<PackageReference Include="GenHTTP.Modules.Layouting" Version="10.5.0" />

frameworks/genhttp/meta.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"display_name": "genhttp",
2+
"display_name": "GenHTTP",
33
"language": "C#",
44
"type": "framework",
5-
"engine": "Kestrel",
6-
"description": "Lightweight embeddable C# web server using the Kestrel engine for HTTP/1.1, HTTP/2, and HTTP/3 support.",
5+
"engine": "GenHTTP",
6+
"description": "Lightweight, embeddable and modular C# web server.",
77
"repo": "https://github.com/Kaliumhexacyanoferrat/GenHTTP",
88
"enabled": true,
99
"tests": [
@@ -14,10 +14,6 @@
1414
"upload",
1515
"compression",
1616
"noisy",
17-
"mixed",
18-
"baseline-h2",
19-
"static-h2",
20-
"baseline-h3",
21-
"static-h3"
17+
"mixed"
2218
]
2319
}

0 commit comments

Comments
 (0)