DefaultStripeNetworkClient
class DefaultStripeNetworkClient @JvmOverloads constructor(workContext: CoroutineContext = Dispatchers.IO, connectionFactory: ConnectionFactory = ConnectionFactory.Default, retryDelaySupplier: RetryDelaySupplier = ExponentialBackoffRetryDelaySupplier(), maxRetries: Int = DEFAULT_MAX_RETRIES, logger: Logger = Logger.noop()) : StripeNetworkClient
Constructors
Link copied to clipboard
constructor(workContext: CoroutineContext = Dispatchers.IO, connectionFactory: ConnectionFactory = ConnectionFactory.Default, retryDelaySupplier: RetryDelaySupplier = ExponentialBackoffRetryDelaySupplier(), maxRetries: Int = DEFAULT_MAX_RETRIES, logger: Logger = Logger.noop())
Functions
Link copied to clipboard
Execute an HTTP request represented by a StripeRequest and attempts to parse the HTTP response's body as a String and returns it as StripeResponse.
Link copied to clipboard
open suspend override fun executeRequestForFile(request: StripeRequest, outputFile: File): StripeResponse<File>
Execute an HTTP request represented by a StripeRequest and attempts to parse the HTTP response's body as a File and returns it as StripeResponse.