public AbstractRequest(OneDriveAPI api,URL url,String method){
  this.api=api;
  this.url=Objects.requireNonNull(url);
  this.method=Objects.requireNonNull(method);
  this.headers=new ArrayList<>();
  addHeader("Accept-Encoding","gzip");
  addHeader("Accept-Charset","utf-8");
}

public AbstractRequest ( OneDriveAPI api , URL url , String method ) { this . api = api ; this . url = Objects . requireNonNull ( url ) ; this . method = Objects . requireNonNull ( method ) ; this . headers = new ArrayList < > ( ) ; addHeader ( "Accept-Encoding" , "gzip" ) ; addHeader ( "Accept-Charset" , "utf-8" ) ; }
constructs an authenticated request using a provided onedriveapi .
