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

status int
the HTTP status, or 0 when the request failed before a response
body byte[]
the response body, never null
headers Map<String, String>
the response headers, keyed by lower case name