SignalingHttpClient.sendRequest()

DESCRIPTION

Send a HTTP request

If the function returns true, the callback must be invoked when the request is resolved no matter the resolved state.

If the callback is invoked with statusCode = 0, it signals that the request failed without a response. When statusCode = 0, the response string can be empty or be an error message.

DECLARATION

virtual bool sendRequest(const SignalingHttpRequest& request,
                           HttpResponseCallback callback) = 0

PARAMETERS

request:
The request to send.
callback:
callback to be invoked when the request is resolved.

RETURNS

true if the request was accepted.