code: private boolean hasRequestContextTimeout(RequestContext requestContext) {
      Object requestTimeout = requestContext.getLocalAttr(R2Constants.REQUEST_TIMEOUT);
      return (requestTimeout instanceof Number) && (((Number)requestTimeout).intValue() > 0);
    }
docs: Check whether per-request timeout is specified in the given request context.