Classes

The following classes are available globally.

  • A set of helper functions to make it easier to create, start, and stop Kitura based servers.

    See more

    Declaration

    Swift

    public class Kitura
  • The Router class provides the external interface for the routing of requests to the appropriate code for handling. This includes:

    • Routing requests to closures with the signature of RouterHandler
    • Routing requests to the handle function of classes that implement the RouterMiddleware protocol.
    • Routing the request to a template engine to generate the appropriate output.
    • Serving the landing page when someone makes an HTTP request with a path of slash (/).
    See more

    Declaration

    Swift

    public class Router
  • A set of helper functions for router path matching using regular expression.

    See more

    Declaration

    Swift

    public class RouteRegex
  • A set of APIs to work with Content-Type headers, whether to generate the value or to determine if it’s an acceptable value.

    See more

    Declaration

    Swift

    public class ContentType