
net.dongliu.commons.request.Response Maven / Gradle / Ivy
package net.dongliu.commons.request;
import net.dongliu.commons.lang.collection.Pair;
import java.util.Collections;
import java.util.List;
/**
* http response, with statusCode, headers, and body
*
* @author Dong Liu
*/
public class Response {
private int code;
private List> headers = Collections.emptyList();
private T body;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public List> getHeaders() {
return headers;
}
public void setHeaders(List> headers) {
this.headers = headers;
}
public T getBody() {
return body;
}
public void setBody(T body) {
this.body = body;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy