Content

Content

This section describes the providers that you can use to implement your application, such as webservices, redirects or static resources.

When running a GenHTTP server instance, you need to pass the root handler that will be responsible to answer HTTP requests. You will typically start with a layout that allows to structure your web application and add some of the handlers below to achieve the required functionality to this layout.

The template projects will already provide a basic project structure that you can extend to your needs.

var app = Layout.Create()
                .Add("resources", ...)
                .Add("api", ...);

Host.Create()
    .Handler(app)
    .Run();

This page lists all handlers that are provided by the framework. To implement new functionality, you can also implement custom handlers.

Application Frameworks

Concerns

Providers

Concepts

Share