class WhenRequest extends AnyRef
- Alphabetic
- By Inheritance
- WhenRequest
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
thenHandleOpenWebSocket[WS_RESULT](headers: Headers, useHandler: (WS_HANDLER[WS_RESULT]) ⇒ WS_RESULT): SttpBackendStub[F, S, WS_HANDLER]
When openWebsocket() is called, the given headers and handler are used to create the result.
When openWebsocket() is called, the given headers and handler are used to create the result. This method of stubbing is best suited when openWebsocket() is called with a handler that doesn't return a "high-level" WebSocket, but instead e.g. a backend-specific stream.
-
def
thenHandleOpenWebSocket[WS_RESULT](useHandler: (WS_HANDLER[WS_RESULT]) ⇒ WS_RESULT): SttpBackendStub[F, S, WS_HANDLER]
When openWebsocket() is called, the given headers and handler are used to create the result.
When openWebsocket() is called, the given headers and handler are used to create the result. This method of stubbing is best suited when openWebsocket() is called with a handler that doesn't return a "high-level" WebSocket, but instead e.g. a backend-specific stream.
- def thenRespond[T](resp: ⇒ Response[T]): SttpBackendStub[F, S, WS_HANDLER]
- def thenRespond[T](body: T): SttpBackendStub[F, S, WS_HANDLER]
-
def
thenRespondCyclic[T](bodies: T*): SttpBackendStub[F, S, WS_HANDLER]
Not thread-safe!
-
def
thenRespondCyclicResponses[T](responses: Response[T]*): SttpBackendStub[F, S, WS_HANDLER]
Not thread-safe!
- def thenRespondNotFound(): SttpBackendStub[F, S, WS_HANDLER]
- def thenRespondOk(): SttpBackendStub[F, S, WS_HANDLER]
- def thenRespondServerError(): SttpBackendStub[F, S, WS_HANDLER]
-
def
thenRespondWebSocket(headers: Headers, wsStub: WebSocketStub[_]): SttpBackendStub[F, S, WS_HANDLER]
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned.
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned. This method of stubbing should be used when using the "high-level" websockets, that is when
WS_RESULTis WebSocket.The websocket instance will be built using the given WebSocketStub.
-
def
thenRespondWebSocket(wsStub: WebSocketStub[_]): SttpBackendStub[F, S, WS_HANDLER]
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned.
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned. This method of stubbing should be used when using the "high-level" websockets, that is when
WS_RESULTis WebSocket.The websocket instance will be built using the given WebSocketStub.
-
def
thenRespondWebSocket[WS_RESULT](headers: Headers, result: WS_RESULT): SttpBackendStub[F, S, WS_HANDLER]
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned.
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned. This method of stubbing is best suited when using the "high-level" websockets, that is when
WS_RESULTis WebSocket. -
def
thenRespondWebSocket[WS_RESULT](result: WS_RESULT): SttpBackendStub[F, S, WS_HANDLER]
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned.
When openWebsocket() is called, the passed handler will be ignored, and the given result will be returned. This method of stubbing is best suited when using the "high-level" websockets, that is when
WS_RESULTis WebSocket. - def thenRespondWithCode(status: StatusCode, msg: String = ""): SttpBackendStub[F, S, WS_HANDLER]
- def thenRespondWrapped(resp: (Request[_, _]) ⇒ F[Response[_]]): SttpBackendStub[F, S, WS_HANDLER]
- def thenRespondWrapped(resp: ⇒ F[Response[_]]): SttpBackendStub[F, S, WS_HANDLER]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )