Interface Routing

All Superinterfaces:
ServerLifecycle
All Known Implementing Classes:
WebSocketRouting

public interface Routing extends ServerLifecycle
Routing represents composition of HTTP request-response handlers with routing rules. It is a cornerstone of the WebServer.
See Also:
  • Method Details

    • route

      void route(BareRequest bareRequest, BareResponse bareResponse)
      Process bare minimal request and response using this routing.
      Parameters:
      bareRequest - HTTP request to process
      bareResponse - HTTP response to process
    • builder

      static Routing.Builder builder()
      Creates new instance of routing builder.
      Returns:
      a new instance