SdkHttpOperation

A (Smithy) HTTP based operation.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val context: <Error class: unknown class>

An ExecutionContext instance scoped to this operation

Link copied to clipboard

Phases used to execute the operation request and get a response instance

Link copied to clipboard
val interceptors: MutableList<<Error class: unknown class><Any, Any, <Error class: unknown class>, <Error class: unknown class>>>

Interceptors that will be executed as part of this operation. The difference between phases and interceptors is the former is internal only whereas the latter is external customer facing. Middleware is also allowed to suspend whereas interceptors are meant to be executed quickly.

Functions

Link copied to clipboard
fun install(middleware: InitializeMiddleware<I, O>)
fun install(middleware: InlineMiddleware<I, O>)
fun install(middleware: MutateMiddleware<O>)
fun install(middleware: ReceiveMiddleware)

Install a middleware into this operation's execution stack

Inherited functions

Link copied to clipboard
suspend fun <I, O, R> SdkHttpOperation<I, O>.execute(httpHandler: <Error class: unknown class><SdkHttpRequest, <Error class: unknown class>>, input: I, block: suspend (O) -> R): R

Make an operation request with the given input and return the result of executing block with the output.

Link copied to clipboard
suspend fun <I, O> SdkHttpOperation<I, O>.roundTrip(httpHandler: <Error class: unknown class><SdkHttpRequest, <Error class: unknown class>>, input: I): O

Round trip an operation using the given HttpHandler