I want to use Kestrel HTTP Server to do HTTP things unrelated to the ASP.NET abstraction. I don't want to install any of the ASP.NET packages just Kestrel and use Request/Response model to write a fast/performant HTTP application.
In the old days this was done with HttpListener
, but since everything now runs on Linux I can't use HTTP.sys.
Every Kestrel example shows how to use it with ASP.NET Core using the WebHost
thingy.
I just want to run a console application that opens a port and gives me HTTP requests.
I'm almost 100% sure that this is possible. How I'm I supposed to do it?