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

com.rollbar.reactivestreams.notifier.sender.http.AsyncHttpRequestImpl 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;

/**
 * Data for an asynchronous, non-blocking HTTP request.
 */
class AsyncHttpRequestImpl implements AsyncHttpRequest {
  private final String url;
  private final Iterable> headers;
  private final String body;

  /**
   * Constructor.
   *
   * @param url The URL to connect to.
   * @param headers Request headers.
   * @param body Request body.
   */
  public AsyncHttpRequestImpl(String url, Iterable> headers,
                              String body) {
    this.url = url;
    this.headers = headers;
    this.body = body;
  }

  @Override
  public String getUrl() {
    return url;
  }

  @Override
  public Iterable> getHeaders() {
    return headers;
  }

  @Override
  public String getBody() {
    return body;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy