private static String populatePatternParams(String pathPattern, Map<String, String> pathParams) {
        for (Entry<String, String> e : pathParams.entrySet()) {
            @SuppressWarnings("RegExpRedundantEscape")
            final String tokenPattern = "\\{" + e.getKey() + "\\}|:" + e.getKey();
            pathPattern = pathPattern.replaceAll(tokenPattern, e.getValue());
        }
        return pathPattern;
    }
NB: For now we redirect all methods.
core/src/main/java/com/linecorp/armeria/server/RedirectService.java