core/src/main/java/net/typedrest/AbstractEndpoint.java
protected Optional<Boolean> isMethodAllowed(String method) {
        if (allowedMethods.isEmpty()) {
            return Optional.empty();
        }
        return Optional.of(allowedMethods.contains(method));
    }
protected Optional<Boolean> isMethodAllowed(String method) {
        if (allowedMethods.isEmpty()) {
            return Optional.empty();
        }
        return Optional.of(allowedMethods.contains(method));
    }
protected Optional < Boolean > isMethodAllowed ( String method ) { if ( allowedMethods . isEmpty ( ) ) { return Optional . empty ( ) ; } return Optional . of ( allowedMethods . contains ( method ) ) ; }
Shows whether the server has indicated that a specific HTTP method is
currently allowed.

Uses cached data from last response.

@param method The HTTP method (e.g. GET, POST, ...) to check.
@return An indicator whether the method is allowed. If no request has been
sent yet or the server did not specify allowed methods
{@link Optional#empty()} is returned.
Shows whether the server has indicated that a specific HTTP method is currently allowed .