public void before(String path, String acceptType, Filter filter) {
        addFilter(HttpMethod.before, FilterImpl.create(path, acceptType, filter));
    }
Maps a filter to be executed before any matching routes

@param path       the path
@param acceptType the accept type
@param filter     The filter
src/main/java/spark/Routable.java