code: public <R extends Request<T>> R setRetryPolicy(RetryPolicy retryPolicy) {
          checkIfActive();
          this.retryPolicy = retryPolicy;
          return (R) this;
      }
docs: Sets the retry policy for this request.
  
  @return This Request object to allow for chaining.