method onResponse
void onResponse(object requestor,int32 code,string text,basics::dictionary header,stream payload,object context);
Argumente
- requestorThe request object associated with the response.
- codeContains the HTTP response code.
- textContains the response text.
- header
Contains the header. The name of the header fields are used as the dictionary keys.
A basics::array of strings that are the field value(s) will be returned for each key.
- payloadContains the response data returned by the server.
- contextOptional context object that will be passed to the listener when a response is received. This parameter is
provided as a means of keeping track of requests received by the listener, when there are multiple requests outstanding.
Zurückgegebener Wert