io.femo.http.events.HttpReceivedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-jdk7 Show documentation
Show all versions of http-jdk7 Show documentation
An easy to use HTTP API, that supports synchronous and asynchronous execution of HTTP request.
On android only asynchronous driver is supported.
This library has been backported to jdk 7 to retain compatibility with android!
The newest version!
package io.femo.http.events;
import io.femo.http.HttpRequest;
import io.femo.http.HttpResponse;
/**
* Created by felix on 2/11/16.
*/
public class HttpReceivedEvent extends HttpEvent {
private HttpRequest request;
private HttpResponse response;
public HttpReceivedEvent(HttpRequest request, HttpResponse response) {
super(HttpEventType.RECEIVED);
this.request = request;
this.response = response;
}
public HttpRequest request() {
return request;
}
public HttpResponse response() {
return response;
}
}