Package

wvlet.airframe

http

Permalink

package http

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. http
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ControllerProvider extends AnyRef

    Permalink

  2. trait ControllerProviderFromSession extends ControllerProvider with LogSupport

    Permalink
  3. class Endpoint extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  4. trait HttpClient[F[_], Req, Resp] extends AutoCloseable

    Permalink

    Asynchronous HTTP Client interface

    Asynchronous HTTP Client interface

    F

    An abstraction for Future type (e.g., Resolves the differences between Twitter Future, Scala Future, etc.)

  5. class HttpClientException extends Exception

    Permalink

  6. case class HttpClientMaxRetryException(response: HttpResponse[_], retryContext: RetryContext, cause: Throwable) extends HttpClientException with Product with Serializable

    Permalink
  7. trait HttpContext[Req, Resp, F[_]] extends AnyRef

    Permalink

    * Used for passing the subsequent actions to HttpFilter

  8. trait HttpFilter[Req, Resp, F[_]] extends HttpFilterType

    Permalink

    A filter interface to define actions for handling HTTP requests and responses

  9. trait HttpFilterType extends AnyRef

    Permalink
  10. final class HttpMethod extends Enum[HttpMethod]

    Permalink
  11. trait HttpRequest[Req] extends AnyRef

    Permalink
  12. trait HttpRequestAdapter[Req] extends AnyRef

    Permalink

    Type class to bridge the original requests

  13. trait HttpResponse[Resp] extends AnyRef

    Permalink
  14. trait HttpResponseAdapter[Resp] extends AnyRef

    Permalink

    Type class to bridge the original response type and HttpResponse

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

    Permalink

  16. class HttpStatus extends AnyRef

    Permalink
  17. class HttpSyncClient[F[_], Req, Resp] extends AutoCloseable

    Permalink

    A synchronous HttpClient that awaits responses.

  18. trait ResponseHandler[Req, Res] extends AnyRef

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

    Permalink

    A mapping from an HTTP route to a method with Endpoint annotation

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

    Permalink
  21. trait RouteMatcher extends AnyRef

    Permalink

    Find a matching route (RouteMatch) from a given HttpRequest

  22. case class Router(surface: Option[Surface] = None, children: Seq[Router] = Seq.empty, localRoutes: Seq[Route] = Seq.empty, filterSurface: Option[Surface] = None) extends Product with Serializable

    Permalink

    Router defines mappings from HTTP requests to Routes.

    Router defines mappings from HTTP requests to Routes.

    Router can be nested

    • Router1 with Filter1
      • Router2: endpoints e1, e2
      • Router3: endpoints e3 with Filter2
    • Router4: endpoints e4

    From this router definition, the backend HTTP server specific implementation will build a mapping table like this: e1 -> Filter1 andThen process(e1) e2 -> Filter1 andThen process(e2) e3 -> Filter1 andThen Filter2 andThen process(e3) e4 -> process(e4)

  23. case class ServerAddress(host: String, port: Int, scheme: Option[String] = None) extends Product with Serializable

    Permalink

    Server address holder

  24. case class SimpleHttpRequest(method: HttpMethod, path: String, header: Map[String, String] = Map.empty, query: Map[String, String] = Map.empty, contentString: String = "") extends HttpRequest[SimpleHttpRequest] with Product with Serializable

    Permalink
  25. case class SimpleHttpResponse(status: HttpStatus, contentString: String = "", contentType: Option[String] = None) extends HttpResponse[SimpleHttpResponse] with Product with Serializable

    Permalink

Value Members

  1. object Automaton

    Permalink
  2. object HttpClient extends LogSupport

    Permalink
  3. object HttpClientException extends LogSupport

    Permalink

    Common classifiers for HTTP client responses and exceptions in order to retry HTTP requests.

  4. object HttpStatus

    Permalink

    HTTP status code collection.

  5. object Route extends Serializable

    Permalink
  6. object RouteMatcher extends LogSupport

    Permalink
  7. object Router extends LogSupport

    Permalink
  8. 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.

  9. object ServerAddress extends LogSupport

    Permalink
  10. object SimpleHttpRequest extends Serializable

    Permalink
  11. object SimpleHttpResponse extends Serializable

    Permalink
  12. def httpDefaultDesign: Design

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped