OkHttpTaskBridgeHttpApi

TaskBridgeHttpApi implementation using Retrofit and OkHttp.

Types

Link copied to clipboard
object Companion

Companion object for creating instances of OkHttpTaskBridgeHttpApi.

Functions

Link copied to clipboard
open suspend override fun cancelTask(context: Ctx, url: String, body: CancelTaskBody?): CancelTaskResponse
Link copied to clipboard
open suspend override fun createTaskJson(context: Ctx, url: String, body: TaskCreateJsonRequest): TaskCreatedResponse
Link copied to clipboard
open suspend override fun createTaskMultipart(context: Ctx, url: String, clientRequestId: String, taskType: String, inputJson: String?, metadataJson: String?, attachments: List<TaskBridgeMultipartAttachment>): TaskCreatedResponse
Link copied to clipboard
open suspend override fun pollEvents(context: Ctx, url: String, afterEventId: String?, waitTimeoutMs: Int, maxEvents: Int): PollEventsResponse
Link copied to clipboard
open suspend override fun submitAction(context: Ctx, url: String, body: TaskActionRequest): SubmitActionResponse