Class

io.finch.Output

EndpointResultOps

Related Doc: package Output

Permalink

implicit final class EndpointResultOps[A] extends AnyVal

Exposes an API for testing Endpoints.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EndpointResultOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EndpointResultOps(o: Result[A])

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. val o: Result[A]

    Permalink
  8. def output: Option[Output[A]]

    Permalink

    Queries an Output of the Endpoint result or throws an exception if an underlying Future is failed.

    Queries an Output of the Endpoint result or throws an exception if an underlying Future is failed.

    returns

    Some(output) if this endpoint was matched on a given input, None otherwise.

    Note

    This method is blocking and awaits on the underlying Future with the upper bound of 10 seconds.

  9. def remainder: Option[Input]

    Permalink

    Returns the remainder of the Input after an Endpoint is matched.

    Returns the remainder of the Input after an Endpoint is matched.

    returns

    Some(remainder) if this endpoint was matched on a given input, None otherwise.

  10. def toString(): String

    Permalink
    Definition Classes
    Any
  11. def tryOutput: Option[Try[Output[A]]]

    Permalink

    Queries an Output wrapped with Try (indicating if the Future is failed).

    Queries an Output wrapped with Try (indicating if the Future is failed).

    returns

    Some(output) if this endpoint was matched on a given input, None otherwise.

    Note

    This method is blocking and awaits on the underlying Future with the upper bound of 10 seconds.

  12. def tryValue: Option[Try[A]]

    Permalink

    Queries a value from the Output wrapped with Try (indicating if either the Future is failed or Output wasn't a payload).

    Queries a value from the Output wrapped with Try (indicating if either the Future is failed or Output wasn't a payload).

    returns

    Some(value) if this endpoint was matched on a given input, None otherwise.

    Note

    This method is blocking and awaits on the underlying Future with the upper bound of 10 seconds.

  13. def value: Option[A]

    Permalink

    Queries the value from the Output or throws an exception if either an underlying Future is failed or Output wasn't a payload.

    Queries the value from the Output or throws an exception if either an underlying Future is failed or Output wasn't a payload.

    returns

    Some(value) if this endpoint was matched on a given input, None otherwise.

    Note

    This method is blocking and awaits on the underlying Future with the upper bound of 10 seconds.

Inherited from AnyVal

Inherited from Any

Ungrouped