@Override
    public Optional<String> getResponseHeader(final String name) {
        return Optional.ofNullable(this.responseHeaders.get(name));
    }
Set the request method for mock purpose.

@param method request method
@return this mock web context
pac4j-core/src/test/java/org/pac4j/core/context/MockWebContext.java