- All Superinterfaces:
Prototype.Api
,Routing
,ServerLifecycle
HTTP routing.
This routing is capable of handling any HTTP version.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRouting.Builder
builder()
Creates new instance ofrouter builder
.static HttpRouting
create()
Create a default router.static HttpRouting
empty()
Empty routing (all requests will returnStatus.NOT_FOUND_404
.void
route
(ConnectionContext ctx, RoutingRequest request, RoutingResponse response) Route a request.security()
Security associated with this routing.Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
builder
Creates new instance ofrouter builder
.- Returns:
- a new instance
-
create
Create a default router.- Returns:
- new default router
-
empty
Empty routing (all requests will returnStatus.NOT_FOUND_404
.- Returns:
- empty routing
-
routingType
Description copied from interface:Routing
- Specified by:
routingType
in interfaceRouting
- Returns:
- this routing type
-
route
Route a request.- Parameters:
ctx
- the underlying connection contextrequest
- the request to routeresponse
- the response for the request
-
security
HttpSecurity security()Security associated with this routing.- Returns:
- security
-