Awaits for an Output wrapped with Try (indicating if the com.twitter.util.Future is failed).
Awaits for an Output wrapped with Try (indicating if the com.twitter.util.Future is failed).
Some(output)
if this endpoint was matched on a given input, None
otherwise.
This method is blocking. Never use it in production.
Awaits an Output of the Endpoint result or throws an exception if an underlying com.twitter.util.Future is failed.
Awaits an Output of the Endpoint result or throws an exception if an underlying com.twitter.util.Future is failed.
Some(output)
if this endpoint was matched on a given input, None
otherwise.
This method is blocking. Never use it in production.
Awaits a value from the Output wrapped with Try (indicating if either the com.twitter.util.Future is failed or Output wasn't a payload).
Awaits a value from the Output wrapped with Try (indicating if either the com.twitter.util.Future is failed or Output wasn't a payload).
Some(value)
if this endpoint was matched on a given input, None
otherwise.
This method is blocking. Never use it in production.
Awaits a value from the Output or throws an exception if either an underlying com.twitter.util.Future is failed or Output wasn't a payload.
Awaits a value from the Output or throws an exception if either an underlying com.twitter.util.Future is failed or Output wasn't a payload.
Some(value)
if this endpoint was matched on a given input,
None
otherwise.
@note This method is blocking. Never use it in production.
Runs and returns the Output (wrapped with future) after an Endpoint is matched.
Returns the remainder of the Input after an Endpoint is matched.
A result returned from an Endpoint. This models
Option[(Input, Future[Output])]
and represents two cases:remainder
andoutput
is returned.None
is returned.API methods exposed on this type are mostly introduced for testing.
This class also provides various of
awaitX
methods useful for testing and experimenting.