Object/Trait

io.udash.rest.raw

RawRest

Related Docs: trait RawRest | package raw

Permalink

object RawRest extends RawRpcCompanion[RawRest]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RawRest
  2. RawRpcCompanion
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AsRawRealRpc[Real] = AsRawReal[RawRest, Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  2. type AsRawRpc[Real] = AsRaw[RawRest, Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  3. type AsRealRpc[Real] = AsReal[RawRest, Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  4. type Async[T] = (Callback[T]) ⇒ Unit

    Permalink

    The most low-level, raw type representing an asynchronous, possibly side-effecting operation that yields a value of type T as a result.

    The most low-level, raw type representing an asynchronous, possibly side-effecting operation that yields a value of type T as a result. Async is a consumer of a callback. When a callback is passed to Async, it should start the operation and ultimately notify the callback about the result. Each time the callback is passed, the entire operation should be repeated, involving all possible side effects. Operation should never be started without the callback being passed (i.e. there should be no observable side effects before a callback is passed). Implementation of Async should also be prepared to accept a callback before the previous one was notified about the result (i.e. it should support concurrent execution).

  5. trait AsyncEffect[F[_]] extends AnyRef

    Permalink

    Typeclass which captures the fact that some effect type constructor represents asynchronous computation and can be converted to RawRest.Async.

    Typeclass which captures the fact that some effect type constructor represents asynchronous computation and can be converted to RawRest.Async.

    Annotations
    @implicitNotFound( ... )
  6. type Callback[T] = (com.avsystem.commons.Try[T]) ⇒ Unit

    Permalink

    A callback that gets notified when value of type T gets computed or when computation of that value fails.

    A callback that gets notified when value of type T gets computed or when computation of that value fails. Callbacks should never throw exceptions. Preferably, they should be simple notifiers that delegate the real work somewhere else, e.g. schedule some handling code on a separate executor (e.g. ExecutionContext).

  7. type HandleRequest = (RestRequest) ⇒ Async[RestResponse]

    Permalink

    Raw type of an operation that executes a RestRequest.

    Raw type of an operation that executes a RestRequest. The operation should be run every time the resulting Async value is passed a callback. It should not be run before that. Each run may involve side effects, network communication, etc. Runs may be concurrent. Request handlers should never throw exceptions but rather convert them into failing implementation of Async. One way to do this is by wrapping the handler with safeHandle.

  8. type HandleResolvedRequest = (RestRequest, ResolvedCall) ⇒ Async[RestResponse]

    Permalink

    Similar to HandleRequest but accepts already resolved path as a second argument.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object AsyncEffect

    Permalink
  5. final val GetMethodBodyParam: String("GET methods cannot take @Body parameters")

    Permalink
  6. final val InvalidTraitMessage: String("result type ${T} is not a valid REST API trait, does it have a properly defined companion object?")

    Permalink
  7. final val MissingBodyParam: String("expected exactly one @Body parameter but none was found")

    Permalink
  8. final val NotValidCustomBodyMethod: String("it cannot be translated into an HTTP method with custom body")

    Permalink
  9. final val NotValidFormBodyMethod: String("it cannot be translated into an HTTP method with form body")

    Permalink
  10. final val NotValidGetMethod: String("it cannot be translated into an HTTP GET method")

    Permalink
  11. final val NotValidHttpMethod: String("it cannot be translated into an HTTP method")

    Permalink
  12. final val NotValidPrefixMethod: String("it cannot be translated into a prefix method")

    Permalink
  13. final val PrefixMethodBodyParam: String("prefix methods cannot take @Body parameters")

    Permalink
  14. final val SuperfluousBodyParam: String("expected exactly one @Body parameter but more than one was found")

    Permalink
  15. def asHandleRequest[Real](real: Real)(implicit arg0: AsRawRpc[Real], arg1: RestMetadata[Real]): HandleRequest

    Permalink
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def asRaw[Real](real: Real)(implicit asRawRpc: AsRawRpc[Real]): RawRest

    Permalink
    Definition Classes
    RawRpcCompanion
  18. def asRawRealRpc[Real](implicit asRawReal: AsRawRealRpc[Real]): AsRawRealRpc[Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  19. def asRawRpc[Real](implicit asRaw: AsRawRpc[Real]): AsRawRpc[Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  20. def asReal[Real](raw: RawRest)(implicit asRealRpc: AsRealRpc[Real]): Real

    Permalink
    Definition Classes
    RawRpcCompanion
  21. def asRealRpc[Real](implicit asReal: AsRealRpc[Real]): AsRealRpc[Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  22. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  23. def contraTransformCallback[A, B](callback: Callback[B])(f: (com.avsystem.commons.Try[A]) ⇒ com.avsystem.commons.Try[B]): Callback[A]

    Permalink
  24. def contramapCallback[A, B](callback: Callback[B])(f: (A) ⇒ B): Callback[A]

    Permalink
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  27. def failingAsync[T](cause: Throwable): Async[T]

    Permalink
  28. def fromHandleRequest[Real](handleRequest: HandleRequest)(implicit arg0: AsRealRpc[Real], arg1: RestMetadata[Real]): Real

    Permalink
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. def mapAsync[A, B](async: Async[A])(f: (A) ⇒ B): Async[B]

    Permalink
  33. macro def materializeApiAsRaw[Real]: AsRawRpc[Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  34. macro def materializeAsRaw[Real]: AsRawRpc[Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  35. macro def materializeAsRawReal[Real]: AsRawRealRpc[Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  36. macro def materializeAsReal[Real]: AsRealRpc[Real]

    Permalink
    Definition Classes
    RawRpcCompanion
  37. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  40. implicit def rawRestAsRawNotFound[T]: ImplicitNotFound[AsRaw[RawRest, T]]

    Permalink
    Annotations
    @implicitNotFound( InvalidTraitMessage )
  41. implicit def rawRestAsRealNotFound[T]: ImplicitNotFound[AsReal[RawRest, T]]

    Permalink
    Annotations
    @implicitNotFound( InvalidTraitMessage )
  42. def readyAsync[T](result: com.avsystem.commons.Try[T]): Async[T]

    Permalink
  43. def resolveAndHandle(metadata: RestMetadata[_])(handleResolved: HandleResolvedRequest): HandleRequest

    Permalink
  44. def safeAsync[T](async: ⇒ Async[T]): Async[T]

    Permalink
  45. def safeHandle(handleRequest: HandleRequest): HandleRequest

    Permalink

    Ensures that all possible exceptions thrown by a request handler are not propagated but converted into an instance of Async that notifies its callbacks about the failure.

  46. def successfulAsync[T](value: T): Async[T]

    Permalink
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. def transformAsync[A, B](async: Async[A])(f: (com.avsystem.commons.Try[A]) ⇒ com.avsystem.commons.Try[B]): Async[B]

    Permalink
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from RawRpcCompanion[RawRest]

Inherited from AnyRef

Inherited from Any

Ungrouped