public RequestTemplate decodeSlash(boolean decodeSlash) {
    this.decodeSlash = decodeSlash;
    this.uriTemplate =
        UriTemplate.create(this.uriTemplate.toString(), !this.decodeSlash, this.charset);
    if (!this.queries.isEmpty()) {
      this.queries.replaceAll(
          (key, queryTemplate) ->
              QueryTemplate.create(
                  /* replace the current template with new ones honoring the decode value */
                  queryTemplate.getName(),
                  queryTemplate.getValues(),
                  charset,
                  collectionFormat,
                  decodeSlash));
    }
    return this;
  }
Set whether do encode slash {@literal /} characters when resolving this template.

@param decodeSlash if slash literals should not be encoded.
@return a RequestTemplate for chaining.
core/src/main/java/feign/RequestTemplate.java