Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface CloudHttpTransport.Handler
Receives the response of a request.
Methods
public abstract void onResponse(int status, byte[] body, Map<String, String> headers) | Called once per request on the EDT. |
Method details
onResponse
public abstract void onResponse(int status, byte[] body, Map<String, String> headers)Called once per request on the EDT.
Parameters
statusint- the HTTP status, or 0 when the request failed before a response
bodybyte[]- the response body, never null
headersMap<String, String>- the response headers, keyed by lower case name