code: @Deprecated
      public static URL convertRequestToUrl(Request<?> request, boolean removeLeadingSlashInResourcePath) {
          return convertRequestToUrl(request, removeLeadingSlashInResourcePath, true);
      }
docs: Converts the specified request object into a URL, containing all the
  specified parameters, the specified request endpoint, etc.
  
  @param request
  The request to convert into a URL.
  @param removeLeadingSlashInResourcePath
  Whether the leading slash in resource-path should be removed
  before appending to the endpoint.
  @return A new URL representing the specified request.
  
  @throws SdkClientException
  If the request cannot be converted to a well formed URL.
  @deprecated No longer used. May be removed in a future major version.