Package io.micronaut.kotlin.http

Functions

Link copied to clipboard
inline fun <T : Any> argumentOf(): Argument<T>

Shortcut to create an argument of the given type

Link copied to clipboard
inline fun <T : Any> argumentOfList(): Argument<List<T>>

Shortcut to create an argument of a list the given type

Link copied to clipboard
inline fun <T : Any> BlockingHttpClient.retrieveList(request: HttpRequest<Any>): List<T>

Perform an HTTP request for the given request object emitting the full HTTP response from returned Publisher and converting the response body to a list of the specified type.

Link copied to clipboard
inline fun <T : Any> BlockingHttpClient.retrieveObject(request: HttpRequest<Any>): T

Perform an HTTP request for the given request object emitting the full HTTP response from returned Publisher and converting the response body to the specified type.