All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ecwid.apiclient.v3.httptransport.impl.NoRetryRateLimitRetryStrategy.kt Maven / Gradle / Ivy

package com.ecwid.apiclient.v3.httptransport.impl

import com.ecwid.apiclient.v3.httptransport.HttpRequest
import com.ecwid.apiclient.v3.httptransport.HttpResponse
import org.apache.http.client.HttpClient

class NoRetryRateLimitRetryStrategy : RateLimitRetryStrategy {
	override fun makeHttpRequest(httpClient: HttpClient, httpRequest: HttpRequest): HttpResponse {
		return httpClient.execute(httpRequest.toHttpUriRequest()) { response ->
			response.toApiResponse()
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy