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.

  • 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, PATCH or DELETE

      • 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.