Providing Content

Basic Concepts

Starting a GenHTTP server instance will always require you to specify the handler that is responsible to generate responses to client requests. Depending on the kind of content you would like to serve (such as a website or a webservice), there are various handlers already available to be used.


Handlers are usually made available by an additional nuget module. You can find the modules which are currently available on nuget. To setup a project, you will usually reference the GenHTTP.Core package which includes the engine as well as basic elements for layouting and IO. Additionally, you can choose from several project templates which allow to create new projects for specific use cases within a couple of minutes.

If you would like to have full control over response generation, you can implement a custom handler.

Application Frameworks