All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rollbar.reactivestreams.notifier.sender.http.AsyncHttpRequest Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.rollbar.reactivestreams.notifier.sender.http;

import java.util.Map;
import java.util.Set;

/**
 * Data for an asynchronous, non-blocking HTTP request.
 */
public interface AsyncHttpRequest {
  String getUrl();

  Iterable> getHeaders();

  String getBody();

  class Builder {
    public static AsyncHttpRequest build(String url, Set> headers,
                                         String reqBody) {
      return new AsyncHttpRequestImpl(url, headers, reqBody);
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy