wvlet.airframe.http
Attributes
Members list
Packages
Type members
Classlikes
This object was generated by sbt-buildinfo.
This object was generated by sbt-buildinfo.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
An empty RPCContext
Attributes
- Companion
- object
- Supertypes
-
trait PackSupportclass Objecttrait Matchableclass Any
- Known subtypes
-
object ABORTED_10object ALREADY_EXISTS_6object CANCELLED_1object DATA_LOSS_15object DEADLINE_EXCEEDED_4object FAILED_PRECONDITION_9object INTERNAL_13object INVALID_ARGUMENT_3object NOT_FOUND_5object OK_0object OUT_OF_RANGE_11object PERMISSION_DENIED_7object RESOURCE_EXHAUSTED_8object UNAUTHENTICATED_16object UNAVAILABLE_14object UNIMPLEMENTED_12object UNKNOWN_2Show all
gRPC error code definitions in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
gRPC error code definitions in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GrpcStatus.type
An entry point to access airframe-http functionalities
An entry point to access airframe-http functionalities
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Http.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
- Known subtypes
-
class InMemoryAccessLogWriterclass JSONHttpAccessLogWriter
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpAccessLogWriter.type
A base interface to implement http-server specific implementation
A base interface to implement http-server specific implementation
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object DefaultBackend
- Self type
-
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpBackend.type
Attributes
- Companion
- object
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Common classifiers for HTTP client responses and exceptions in order to retry HTTP requests.
Common classifiers for HTTP client responses and exceptions in order to retry HTTP requests.
Attributes
- Companion
- class
- Supertypes
-
trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
HttpClientException.type
Attributes
- Supertypes
-
trait Producttrait Equalsclass HttpClientExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Used for passing the subsequent actions to HttpFilter and for defining the leaf action of request processing chain.
Used for passing the subsequent actions to HttpFilter and for defining the leaf action of request processing chain.
Attributes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpContext.type
A base type to use classOf[HttpContextBase]. classOf[HttpContext[_, _, _] is not supported for higherkinded types
A base type to use classOf[HttpContextBase]. classOf[HttpContext[_, _, _] is not supported for higherkinded types
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
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[_]
Attributes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpFilter.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpHeader.type
Interface for writing HTTP request/response logs
Interface for writing HTTP request/response logs
Attributes
- Companion
- object
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
HttpLogger.type
Http logger configuration
Http logger configuration
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
- Known subtypes
Http request/response data type definitions
Http request/response data type definitions
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpMessage.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpMethod.type
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
HttpMultiMap.type
Immutable case-insensitive MultiMap structure for representing Http headers, query parameters, etc.
Immutable case-insensitive MultiMap structure for representing Http headers, query parameters, etc.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
HttpRequest[Req] wraps native request classes (e.g., okhttp's Response, finagle Response, etc.) so that we can implement common logic for various backends.
HttpRequest[Req] wraps native request classes (e.g., okhttp's Response, finagle Response, etc.) so that we can implement common logic for various backends.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
A type class to bridge the original requests and backend-specific request types (e.g., finagle, okhttp, etc.)
A type class to bridge the original requests and backend-specific request types (e.g., finagle, okhttp, etc.)
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object HttpMessageRequestAdapter
HttpResponse[Resp] wraps native response classes (e.g., okhttp's Response, finagle Response, etc.) so that we can implement common logic for various backends.
HttpResponse[Resp] wraps native response classes (e.g., okhttp's Response, finagle Response, etc.) so that we can implement common logic for various backends.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
A type class to bridge the original response type and HttpResponse
A type class to bridge the original response type and HttpResponse
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object HttpMessageResponseAdapter
A common trait for Http server implementations
A common trait for Http server implementations
Attributes
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
Exception to report errors to client
Exception to report errors to client
Attributes
- Supertypes
-
trait HttpServerExceptionBaseclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class HttpServerException
Attributes
- Companion
- object
- Supertypes
-
trait PackSupportclass Objecttrait Matchableclass Any
- Known subtypes
-
object Accepted_202object BadGateway_502object BadRequest_400object ClientClosedRequest_499object Conflict_409object Continue_100object Created_201object EnhanceYourCalm_420object ExpectationFailed_417object FailedDependency_424object Forbidden_403object Found_302object GatewayTimeout_504object Gone_410object HttpVersionNotSupported_505object InsufficientStorage_507object InternalServerError_500object LengthRequired_411object Locked_423object MethodNotAllowed_405object MovedPermanently_301object MultiStatus_207object MultipleChoices_300object NoContent_204object NotAcceptable_406object NotExtended_510object NotFound_404object NotImplemented_501object NotModified_304object Ok_200object PartialContent_206object PaymentRequired_402object PermanentRedirect_308object PreconditionFailed_412object PreconditionRequired_428object Processing_102object RequestEntityTooLarge_413object RequestTimeout_408object RequestURITooLong_414object ResetContent_205object SeeOther_303object ServiceUnavailable_503object SwitchingProtocols_101object TemporaryRedirect_307object TooManyRequests_429object Unauthorized_401object Unknown_000object UnorderedCollection_425object UnprocessableEntity_422object UnsupportedMediaType_415object UpgradeRequired_426object UseProxy_305object VariantAlsoNegotiates_506Show all
HTTP status code collection.
HTTP status code collection.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpStatus.type
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RPCContext.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object EmptyRPCContext
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RPCEncoding.type
A model class for RPC error message body. This message will be embedded to HTTP response body or gRPC trailer.
A model class for RPC error message body. This message will be embedded to HTTP response body or gRPC trailer.
We need this class to avoid directly serde RPCException classes with airframe-codec, so that we can properly propagate the exact stack trace to the client.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
RPCException provides a backend-independent (e.g., Finagle or gRPC) RPC error reporting mechanism. Create this exception with (RPCStatus code).toException(...) method.
RPCException provides a backend-independent (e.g., Finagle or gRPC) RPC error reporting mechanism. Create this exception with (RPCStatus code).toException(...) method.
If necessary, we can add more standard error_details parameter like https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto
Attributes
- Companion
- object
- Supertypes
-
trait Producttrait Equalstrait LogSupporttrait LazyLoggertrait LoggingMethodsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RPCException.type
RPC endpoint information
RPC endpoint information
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Define the standard RPC code that can be used for generic RPC service implementation.
Define the standard RPC code that can be used for generic RPC service implementation.
This covers all gRPC statuses and have pre-defined mappings to HTTP status (4xx, 5xx) code.
If you need an application-specific error code, use an additional argument of the RPCError class.
Attributes
A base class for defining standard RPC error codes
A base class for defining standard RPC error codes
Attributes
- Companion
- object
- Supertypes
-
trait PackSupportclass Objecttrait Matchableclass Any
- Known subtypes
-
object ABORTED_U12object ALREADY_EXISTS_U6object CANCELLED_U11object DATA_LOSS_I8object DEADLINE_EXCEEDED_I4object EXCEEDED_BUDGET_R8object EXCEEDED_CPU_LIMIT_R3object EXCEEDED_DATA_SIZE_LIMIT_R6object EXCEEDED_MEMORY_LIMIT_R4object EXCEEDED_RATE_LIMIT_R2object EXCEEDED_STORAGE_LIMIT_R7object EXCEEDED_TIME_LIMIT_R5object INCONSISTENT_STATE_U10object INTERNAL_ERROR_I0object INTERRUPTED_I5object INVALID_ARGUMENT_U2object INVALID_REQUEST_U1object NOT_FOUND_U5object NOT_SUPPORTED_U7object OUT_OF_MEMORY_R1object OUT_OF_RANGE_U4object PERMISSION_DENIED_U14object RESOURCE_EXHAUSTED_R0object SERVICE_SHUTTING_DOWN_I7object SERVICE_STARTING_UP_I6object SUCCESS_S0object SYNTAX_ERROR_U3object TIMEOUT_I3object UNAUTHENTICATED_U13object UNAVAILABLE_I2object UNEXPECTED_STATE_U9object UNIMPLEMENTED_U8object UNKNOWN_I1object USER_ERROR_U0Show all
RPC status types
RPC status types
Attributes
- Companion
- object
- Supertypes
-
trait PackSupportclass Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RPCStatusType.type
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)
Attributes
- Companion
- object
- Supertypes
-
trait Producttrait Equalstrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializabletrait RouterBaseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializabletrait RouterObjectBaseclass Objecttrait Matchableclass AnyShow all
- Self type
-
Router.type
Rx-based http server backend interface, which will be used for hiding the server implementation detailes between Netty, Finagle, and gRPC
Rx-based http server backend interface, which will be used for hiding the server implementation detailes between Netty, Finagle, and gRPC
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
RxHttpEndpoint is a terminal for processing requests and returns Rx[Response]
.
RxHttpEndpoint is a terminal for processing requests and returns Rx[Response]
.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
An RxHttpFilter is a filter for receiving the response from the endpoint via endpoint.apply(request)
, and transforming it into another Rx[Response]
.
An RxHttpFilter is a filter for receiving the response from the endpoint via endpoint.apply(request)
, and transforming it into another Rx[Response]
.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class RPCResponseFilterobject identity
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RxHttpFilter.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class FilterNode
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object RxRouter
An interface used for RPC clients (sbt-airframe) to discover the default router for the RPC endpoint.
An interface used for RPC clients (sbt-airframe) to discover the default router for the RPC endpoint.
Example usage:
import wvlet.airframe.http._
@RPC
trait MyRPC {
def hello(name:String) : String
}
object MyRPC extends RxRouterProvider {
// sbt-airframe will generate an RPC client using this router
override def router: RxRouter = RxRouter.of[MyRPC]
}
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Server address holder
Server address holder
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ServerAddress.type
Helper for returning static contents
Helper for returning static contents
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
StaticContent.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all