Package-level declarations

General utility methods.

Functions

Link copied to clipboard
fun Response.asJsoup(html: String? = null): Document

Returns a Jsoup document for this response.

Link copied to clipboard
inline suspend fun <A, B> Iterable<A>.parallelCatchingFlatMap(crossinline f: suspend (A) -> Iterable<B>): List<B>

Parallel implementation of Iterable.flatMap, but running the transformation function inside a try-catch block.

Link copied to clipboard
inline fun <A, B> Iterable<A>.parallelCatchingFlatMapBlocking(crossinline f: suspend (A) -> Iterable<B>): List<B>

Thread-blocking parallel implementation of Iterable.flatMap, but running the transformation function inside a try-catch block.

Link copied to clipboard
inline suspend fun <A, B> Iterable<A>.parallelFlatMap(crossinline f: suspend (A) -> Iterable<B>): List<B>

Parallel implementation of Iterable.flatMap.

Link copied to clipboard
inline fun <A, B> Iterable<A>.parallelFlatMapBlocking(crossinline f: suspend (A) -> Iterable<B>): List<B>

Thread-blocking parallel implementation of Iterable.flatMap.

Link copied to clipboard
inline suspend fun <A, B> Iterable<A>.parallelMap(crossinline f: suspend (A) -> B): List<B>

Parallel implementation of Iterable.map.

Link copied to clipboard
inline fun <A, B> Iterable<A>.parallelMapBlocking(crossinline f: suspend (A) -> B): List<B>

Thread-blocking parallel implementation of Iterable.map.

Link copied to clipboard
inline suspend fun <A, B> Iterable<A>.parallelMapNotNull(crossinline f: suspend (A) -> B?): List<B>

Parallel implementation of Iterable.mapNotNull.

Link copied to clipboard
inline fun <A, B> Iterable<A>.parallelMapNotNullBlocking(crossinline f: suspend (A) -> B?): List<B>

Thread-blocking parallel implementation of Iterable.mapNotNull.

Link copied to clipboard
inline fun <T> String.parseAs(): T

Parses and serializes the Json String as the type .

@ExperimentalSerializationApi
inline fun <T> Response.parseAs(): T

Parse and serialize the response body as the type .

inline fun <T> String.parseAs(transform: (String) -> String): T

Parses and serializes the transformed String as the type .

inline fun <T> Response.parseAs(transform: (String) -> String): T

Parse and serialize the transformed response body as the type .