private static Function<? super ServiceRequestContext, String> toLocationFunction(String locationPattern) {
        requireNonNull(locationPattern, "locationPattern");
        if (!isDefaultUriPattern(locationPattern)) {
            throw new IllegalArgumentException("locationPattern: " + locationPattern);
        }
        return ctx -> populatePatternParams(locationPattern, ctx.pathParams());
    }
NB: For now we redirect all methods.
core/src/main/java/com/linecorp/armeria/server/RedirectService.java