![JAR search and dependency download from the Maven repository](/logo.png)
com.rollbar.reactivestreams.notifier.sender.http.AsyncHttpRequestImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rollbar-reactive-streams Show documentation
Show all versions of rollbar-reactive-streams Show documentation
For connecting your applications built on the JVM to Rollbar for Error Reporting
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