Enables tests that use a client without needing a live Server
Attributes
- behavior
Contains the user-specified behavior that takes the place of the usual Server
- Companion:
- object
- Graph
- Supertypes
Members list
Value members
Concrete methods
Adds a flexible handler for requests that are submitted by test cases
Adds a flexible handler for requests that are submitted by test cases
Attributes
- R
Environment of the new handler's effect.
- handler
New behavior to be added to the TestClient
- Example:
TestClient.addHandler{case request if request.method == Method.GET => ZIO.succeed(Response.ok)}
Adds an exact 1-1 behavior
Adds an exact 1-1 behavior
Attributes
- expectedRequest
The request that will trigger the response
- response
The response to be returned when a user submits the response
- Example:
TestClient.addRequestResponse(Request.get(URL.root), Response.ok)
Attributes
- Definition Classes
Inherited methods
Applies the specified client aspect, which can modify the execution of this client.
Applies the specified client aspect, which can modify the execution of this client.
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- HeaderChecks
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Gets a header or returns None if the header was not present or it could not be parsed
Gets a header or returns None if the header was not present or it could not be parsed
Attributes
- Inherited from:
- HeaderGetters
Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error
Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error
Attributes
- Inherited from:
- HeaderGetters
Attributes
- Inherited from:
- HeaderGetters
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- ZClient
Gets the raw unparsed header value
Gets the raw unparsed header value
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- HeaderModifier
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Updates the current Headers with new one, using the provided update function passed.
Updates the current Headers with new one, using the provided update function passed.
Attributes
- Definition Classes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- ZClient
Attributes
- Inherited from:
- HeaderModifier