public static RawHeaders fromBytes(InputStream in) throws IOException {
  RawHeaders headers;
  do {
    headers=new RawHeaders();
    headers.setStatusLine(Util.readAsciiLine(in));
    readHeaders(in,headers);
  }
 while (headers.getResponseCode() == HttpEngine.HTTP_CONTINUE);
  return headers;
}

public static RawHeaders fromBytes ( InputStream in ) throws IOException { RawHeaders headers ; do { headers = new RawHeaders ( ) ; headers . setStatusLine ( Util . readAsciiLine ( in ) ) ; readHeaders ( in , headers ) ; } while ( headers . getResponseCode ( ) == HttpEngine . HTTP_CONTINUE ) ; return headers ; }
parses bytes of a response header from an http transport .
