Class RequestExecutor

java.lang.Object
africa.sendbyte.http.RequestExecutor

public final class RequestExecutor extends Object
Central request pipeline: builds the URL, serializes the body, delegates to the HttpTransport, and turns the raw response into either a typed model or a SendByteException.

Internal SDK type shared by all resource classes.

  • Constructor Details

    • RequestExecutor

      public RequestExecutor(HttpTransport transport)
  • Method Details

    • json

      public Json json()
    • execute

      public <T> T execute(SendByteHttpRequest request, Class<T> type)
      Execute a request and deserialize the success body into type.
    • executeAsync

      public <T> CompletableFuture<T> executeAsync(SendByteHttpRequest request, Class<T> type)
      Execute a request asynchronously and deserialize the success body into type.