- All Superinterfaces:
ServerLifecycle
- All Known Implementing Classes:
WebSocketRouting
Routing represents composition of HTTP request-response handlers with routing rules.
It is a cornerstone of the
WebServer
.- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
ARouting
builder.static interface
An API to define HTTP request routing rules. -
Method Summary
Modifier and TypeMethodDescriptionstatic Routing.Builder
builder()
Creates new instance ofrouting builder
.void
route
(BareRequest bareRequest, BareResponse bareResponse) Process bare minimal request and response using this routing.Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
route
Process bare minimal request and response using this routing.- Parameters:
bareRequest
- HTTP request to processbareResponse
- HTTP response to process
-
builder
Creates new instance ofrouting builder
.- Returns:
- a new instance
-