public static Function<HttpRequest, String> PREFIXED_REQUEST_METHOD_NAME(final String prefix) {
    return (request) -> replaceIfNull(prefix, "")
        + replaceIfNull(request.getRequestLine().getMethod(), "unknown");
  }
public static Function < HttpRequest , String > PREFIXED_REQUEST_METHOD_NAME ( final String prefix ) { return ( request ) -> replaceIfNull ( prefix , "" ) + replaceIfNull ( request . getRequestLine ( ) . getMethod ( ) , "unknown" ) ; }
A configurable version of REQUEST_METHOD_NAME

@param prefix The String prefix that will be appended to the name generated by the Function.
@return A Function that, when given an HttpRequest, will return a String concatenation of the
prefix and the HTTP method of the request.