Interface CloudHttpTransport
- All Known Implementing Classes:
ConnectionRequestHttpTransport
public interface CloudHttpTransport
A binary HTTP transport for the REST clients in com.codename1.cloud:
Firebase Storage, Supabase and the Places providers.
The default is ConnectionRequestHttpTransport. Tests install a fake
that answers requests synchronously from a queue.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceReceives the response of a request. -
Method Summary
-
Method Details
-
send
void send(String method, String url, Map<String, String> headers, byte[] body, CloudHttpTransport.Handler handler) Sends one request.
Parameters
-
method: the HTTP method,GET,POST,PATCHorDELETE -
url: the full URL, query string included -
headers: request headers, may be null -
body: the request body, or null for none -
handler: receives the response on the EDT. Status 0 means a network failure.
-
-