Search in sources :

Example 1 with HarHeaders

use of edu.umass.cs.benchlab.har.HarHeaders in project zaproxy by zaproxy.

the class HarUtils method createHarHeaders.

public static HarHeaders createHarHeaders(HttpHeader httpHeader) {
    HarHeaders harHeaders = new HarHeaders();
    List<HttpHeaderField> headers = httpHeader.getHeaders();
    for (HttpHeaderField headerField : headers) {
        harHeaders.addHeader(new HarHeader(headerField.getName(), headerField.getValue()));
    }
    return harHeaders;
}
Also used : HttpHeaderField(org.parosproxy.paros.network.HttpHeaderField) HarHeaders(edu.umass.cs.benchlab.har.HarHeaders) HarHeader(edu.umass.cs.benchlab.har.HarHeader)

Aggregations

HarHeader (edu.umass.cs.benchlab.har.HarHeader)1 HarHeaders (edu.umass.cs.benchlab.har.HarHeaders)1 HttpHeaderField (org.parosproxy.paros.network.HttpHeaderField)1