private final IHttpHeaderFactory httpHeaderFactory = new HttpHeaderFactory();
@Override
public IHttpHeaders parse(InputStream is) {
IHttpHeaders httpHeaders = new HttpHeaders();
IHttpHeader header;
while ((header = parseHeader(is)) != null) {
httpHeaders.addHeader(header);
}
return httpHeaders;
}