public HttpRequest(Method method,HttpURI uri,boolean async){
  this.id=nextId++;
  if (uri == null) {
    LOG.severe("HTTP request URL is null");
    throw new IllegalArgumentException("HTTP request URL is null");
  }
  if (method == null) {
    LOG.severe("Invalid Method in an HTTP request");
    throw new IllegalArgumentException("Invalid Method in an HTTP request");
  }
  this.method=method;
  this.uri=uri;
  this.async=async;
}

public HttpRequest ( Method method , HttpURI uri , boolean async ) { this . id = nextId ++ ; if ( uri == null ) { LOG . severe ( "HTTP request URL is null" ) ; throw new IllegalArgumentException ( "HTTP request URL is null" ) ; } if ( method == null ) { LOG . severe ( "Invalid Method in an HTTP request" ) ; throw new IllegalArgumentException ( "Invalid Method in an HTTP request" ) ; } this . method = method ; this . uri = uri ; this . async = async ; }
creates an httprequest with method and uri specified . async true means fire progress events as data is received .
