Represents a request to the other end which may be not be completed yet.
This class is automatically created by method Proxy.
Parameters:
- conn
- Connection instance which this Request belongs to.
- request_data
- Dictionary object to serialize as JSON to send to the other end.
-
setresponse(value)
Method used by Connection instance to tell Request that a Response
is available to this request.
Parameters:
- value
- Value (JSON decoded) received from socket.
-
value
- Get request value response. If the response is not available, it waits
to it (see wait method). If the response contains an Error, this
method raises exceptions.ServerError with the error text inside.
-
wait()
- Block until there is a response. Will manage the socket and dispatch
messages until the response is found.