public CorsServiceBuilder allowRequestMethods(final HttpMethod... methods){
  requireNonNull(methods,"methods");
  for (int i=0; i < methods.length; i++) {
    if (methods[i] == null) {
      throw new NullPointerException("methods[" + i + ']');
    }
  }
  Collections.addAll(allowedRequestMethods,methods);
  return this;
}

public CorsServiceBuilder allowRequestMethods ( final HttpMethod ... methods ) { requireNonNull ( methods , "methods" ) ; for ( int i = 0 ; i < methods . length ; i ++ ) { if ( methods [ i ] == null ) { throw new NullPointerException ( "methods[" + i + ']' ) ; } } Collections . addAll ( allowedRequestMethods , methods ) ; return this ; }
specifies the allowed set of http request methods that should be returned in the cors ' access - control - request - method ' response header .
