net.lightbody.bmp.proxy.HttpObject Maven / Gradle / Ivy
The newest version!
package net.lightbody.bmp.proxy;
import org.apache.commons.io.IOUtils;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.zip.GZIPInputStream;
public class HttpObject {
private int objectNum;
private Date start;
// TODO: Bad things will happen in Blocks if this is not set.
// General problem of mutable object whose constructor does not
// fully construct. FIX.
private Date end;
private long timeToFirstByte;
private long timeToLastByte;
private long bytes;
private String url;
private int responseCode;
private String responseMessage;
private String method;
private String protocol;
private String protocalVersion;
private String host;
private String path;
private String queryString;
// headers, cookies
// List