org.browsermob.proxy.HttpObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of browsermob-proxy Show documentation
Show all versions of browsermob-proxy Show documentation
A programmatic HTTP/S designed for performance and functional testing
The newest version!
package org.browsermob.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