com.davfx.ninio.http.HttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ninio Show documentation
Show all versions of ninio Show documentation
A Java NIO HTTP client/server as light as possible
package com.davfx.ninio.http;
import java.util.HashMap;
import java.util.Map;
public final class HttpResponse {
private final int status;
private final String reason;
private final Map headers;
public HttpResponse(int status, String reason, Map headers) {
this.status = status;
this.reason = reason;
this.headers = headers;
}
public HttpResponse(int status, String reason) {
this(status, reason, new HashMap());
}
public int getStatus() {
return status;
}
public String getReason() {
return reason;
}
public Map getHeaders() {
return headers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy