Ktor Requests Executor
class KtorRequestsExecutor( telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, client: HttpClient = HttpClient(), callsFactories: List<KtorCallFactory> = emptyList(), excludeDefaultFactories: Boolean = false, requestsLimiter: RequestLimiter = ExceptionsOnlyLimiter(), jsonFormatter: Json = nonstrictJsonFormat, pipelineStepsHolder: KtorPipelineStepsHolder = KtorPipelineStepsHolder) : BaseRequestsExecutor
Content copied to clipboard
Constructors
Link copied to clipboard
fun KtorRequestsExecutor( telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, client: HttpClient = HttpClient(), callsFactories: List<KtorCallFactory> = emptyList(), excludeDefaultFactories: Boolean = false, requestsLimiter: RequestLimiter = ExceptionsOnlyLimiter(), jsonFormatter: Json = nonstrictJsonFormat, pipelineStepsHolder: KtorPipelineStepsHolder = KtorPipelineStepsHolder)
Content copied to clipboard
Functions
Link copied to clipboard
Unsafe execution of incoming request. Can throw almost any exception. So, it is better to use something like dev.inmo.tgbotapi.extensions.utils.shortcuts.executeAsync or dev.inmo.tgbotapi.extensions.utils.shortcuts.executeUnsafe