Interface HttpRoute

All Superinterfaces:
Route, ServerLifecycle
All Known Implementing Classes:
Http1Route

public interface HttpRoute extends Route
A basic HTTP route (should be usable by ANY HTTP protocol version).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Fluent API builder for HttpRoute.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.helidon.http.PathMatchers.MatchResult
    accepts(io.helidon.http.HttpPrologue prologue)
    Whether this route accept the provided request.
    Builder to build a new HTTP route.
    Handler of this route.

    Methods inherited from interface io.helidon.webserver.ServerLifecycle

    afterStart, afterStop, beforeStart
  • Method Details

    • builder

      static HttpRoute.Builder builder()
      Builder to build a new HTTP route.
      Returns:
      builder
    • accepts

      io.helidon.http.PathMatchers.MatchResult accepts(io.helidon.http.HttpPrologue prologue)
      Whether this route accept the provided request.
      Parameters:
      prologue - prologue of the request
      Returns:
      result of the validation
      See Also:
      • PathMatchers.MatchResult.notAccepted()
    • handler

      Handler handler()
      Handler of this route.
      Returns:
      handler