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 CompatApi extends AnyRef

    Permalink

    An interface for using different implementation betweeen Scala JVM and Scala.js

  2. class Endpoint extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  3. trait HttpBackend[Req, Resp, F[_]] extends AnyRef

    Permalink

    A base interface to implement http-server specific implementation

  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. trait HttpClientBackend extends AnyRef

    Permalink

  6. case class HttpClientConfig(backend: HttpClientBackend = Compat.defaultHttpClientBackend, requestFilter: (Request) ⇒ Request = identity, retryContext: RetryContext = ..., codecFactory: MessageCodecFactory = ...) extends Product with Serializable

    Permalink

  7. class HttpClientException extends Exception

    Permalink

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

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

    Permalink

    * Used for passing the subsequent actions to HttpFilter and for defining the leaf action of request processing chain.

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

    Permalink

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

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

    Implementations of HttpFilter must wrap an exception occurred in the filter.apply(request, context) with F[_]

  11. trait HttpFilterType extends AnyRef

    Permalink
  12. trait HttpMessage[Raw] extends AnyRef

    Permalink
  13. case class HttpMultiMap(underlying: Map[String, Any] = Map.empty) extends Product with Serializable

    Permalink

    Immutable MultiMap structure for representing Http headers, query parameters, etc.

  14. case class HttpMultiMapEntry(key: String, value: String) extends Product with Serializable

    Permalink
  15. trait HttpRequest[Req] extends AnyRef

    Permalink

    HttpRequest[Req] wraps native request classes (e.g., okhttp's Response, finagle Response, etc.) so that we can implement common logic for various backends.

  16. trait HttpRequestAdapter[Req] extends AnyRef

    Permalink

    A type class to bridge the original requests and backend-specific request types (e.g., finagle, okhttp, etc.)

  17. trait HttpResponse[Resp] extends AnyRef

    Permalink

    HttpResponse[Resp] wraps native response classes (e.g., okhttp's Response, finagle Response, etc.) so that we can implement common logic for various backends.

  18. trait HttpResponseAdapter[Resp] extends AnyRef

    Permalink

    A type class to bridge the original response type and HttpResponse

  19. case class HttpServerException(response: Response, cause: Throwable) extends Exception with HttpMessage[HttpServerException] with Product with Serializable

    Permalink

    Exception to report errors to client

  20. class HttpStatus extends AnyRef

    Permalink
  21. trait HttpSyncClient[Req, Resp] extends AutoCloseable

    Permalink

    A synchronous HTTP Client interface

  22. class HttpSyncClientAdapter[F[_], Req, Resp] extends HttpSyncClient[Req, Resp]

    Permalink

    A synchronous HttpClient that awaits responses.

  23. class RPC extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  24. case class Router(surface: Option[Surface] = None, children: Seq[Router] = Seq.empty, localRoutes: Seq[Route] = Seq.empty, filterSurface: Option[Surface] = None, filterInstance: Option[HttpFilterType] = None) extends LogSupport with 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)

  25. case class ServerAddress(host: String, port: Int, scheme: String = "http") extends Product with Serializable

    Permalink

    Server address holder

  26. case class StaticContent(resourcePaths: List[ResourceType] = List.empty) extends Product with Serializable

    Permalink

Value Members

  1. object Compat extends CompatApi

    Permalink

  2. object Http

    Permalink
  3. object HttpBackend

    Permalink
  4. object HttpClient extends LogSupport

    Permalink
  5. object HttpClientException extends LogSupport

    Permalink

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

  6. object HttpContext

    Permalink
  7. object HttpFilter

    Permalink
  8. object HttpHeader

    Permalink
  9. object HttpMessage

    Permalink

    Http request/response data type definitions

  10. object HttpMethod

    Permalink
  11. object HttpMultiMap extends Serializable

    Permalink
  12. object HttpMultiMapCodec extends MessageCodec[HttpMultiMap]

    Permalink

  13. object HttpStatus

    Permalink

    HTTP status code collection.

  14. object Router extends LogSupport

    Permalink
  15. object ServerAddress extends LogSupport

    Permalink
  16. object StaticContent extends LogSupport

    Permalink

    Helper for returning static contents

  17. package client

    Permalink
  18. package codegen

    Permalink
  19. val compat: CompatApi

    Permalink
  20. package impl

    Permalink
  21. package openapi

    Permalink
  22. package router

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped