Basic dependencies for projects using the GenHTTP framework, including the engine itself
$ dotnet add package GenHTTP.CoreThis package provides the basic dependencies required to run a GenHTTP application using the internal engine.
Please refer to the documentation for tutorials, template projects and other examples.
using GenHTTP.Engine.Internal;
using GenHTTP.Modules.IO;
using GenHTTP.Modules.Practices;
var content = Content.From(Resource.FromString("Hello World!"));
await Host.Create()
.Handler(content)
.Defaults()
.RunAsync(); // or StartAsync() for non-blocking