Removed useless functionality

This commit is contained in:
MattBDev
2020-08-24 22:19:07 -04:00
parent a9d37fc6e5
commit 8a6db57433
4 changed files with 10 additions and 211 deletions

View File

@ -45,6 +45,8 @@ import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ThreadLocalRandom;
import static com.google.common.base.Preconditions.checkState;
public class HttpRequest implements Closeable {
private static final int CONNECT_TIMEOUT = 1000 * 5;
@ -215,6 +217,13 @@ public class HttpRequest implements Closeable {
return conn.getResponseCode();
}
public String getSingleHeaderValue(String header) {
checkState(conn != null, "No connection has been made");
// maybe we should check for multi-header?
return conn.getHeaderField(header);
}
/**
* Get the input stream.
*