Package

wvlet.airframe.http

router

Permalink

package router

Visibility
  1. Public
  2. All

Type Members

  1. trait ControllerProvider extends AnyRef

    Permalink

  2. case class ControllerRoute(controllerSurface: Surface, method: HttpMethod, path: String, methodSurface: ReflectMethodSurface) extends Route with LogSupport with Product with Serializable

    Permalink

    Define mappings from an HTTP request to a controller method which has the Endpoint annotation

  3. class HttpEndpointExecutionContext[Req, Resp, F[_]] extends HttpContext[Req, Resp, F] with LogSupport

    Permalink

    Create the terminal request handler for processing a method with @EndPoint annotation.

    Create the terminal request handler for processing a method with @EndPoint annotation.

    This handler will call a controller method with the request parameters build from the method arguments.

  4. class HttpResponseCodec[Resp] extends MessageCodec[HttpResponse[_]]

    Permalink

  5. trait ResponseHandler[Req, Res] extends AnyRef

    Permalink

  6. trait Route extends AnyRef

    Permalink

    A mapping from an HTTP endpoint to a corresponding method (or function)

  7. case class RouteMatch(route: Route, params: Map[String, String]) extends Product with Serializable

    Permalink
  8. trait RouteMatcher extends AnyRef

    Permalink

    Find a matching route (RouteMatch) from a given HttpRequest

Value Members

  1. object Automaton

    Permalink

  2. object ControllerProvider

    Permalink
  3. object HttpRequestDispatcher extends LogSupport

    Permalink

    Create a filter for dispatching HTTP requests to controller methods with @Endpoint annotation

  4. object HttpRequestMapper extends LogSupport

    Permalink

    Mapping HTTP requests to method call arguments

  5. object RouteMatcher extends LogSupport

    Permalink
  6. object RouterMacros

    Permalink

    Macros for creating a trait factory (Session => A) so that we can register the factory upon defining Route.of[A].

    Macros for creating a trait factory (Session => A) so that we can register the factory upon defining Route.of[A].

    So once you register a route for A, you don't need to call bind[A].toSingleton, etc.

Ungrouped