ktor-utils
Module Contents
alltypes
Module Contents
object AlwaysFailNonceManager : NonceManager
class AttributeKey<T>
interface Attributes
class ByteBufferPool : DefaultPool<ByteBuffer>
class CaseInsensitiveMap<Value> : MutableMap<String, Value>
open class ChannelIOException : IOException
class ChannelReadException : ChannelIOException
class ChannelWriteException : ChannelIOException
expect class ConcurrentMap<Key, Value> : MutableMap<Key, Value>
expect class ConcurrentSet<K> : MutableSet<K>
@DslMarker @Target([AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS, AnnotationTarget.TYPE, AnnotationTarget.FUNCTION]) annotation class ContextDsl
interface Digest
interface Encoder
data class GMTDate : Comparable<GMTDate>
object GenerateOnlyNonceManager : NonceManager
object Hash
object Identity : Encoder
@Target([AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.CONSTRUCTOR]) annotation class InternalAPI
class InvalidPhaseException : Throwable
@Target([AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.CONSTRUCTOR]) annotation class KtorExperimentalAPI
expect class Lock
expect class LockTicket
enum class Month
interface NonceManager
object NoopContinuation
open class Pipeline<TSubject : Any, TContext : Any>
interface PipelineContext<TSubject : Any, TContext : Any> : CoroutineScope
interface PipelineExecutor<R>
typealias PipelineInterceptor<TSubject, TContext> = suspend PipelineContext<TSubject, TContext>.(TSubject) -> Unit
class PipelinePhase
expect class ReadWriteLock
class Semaphore
class StatelessHmacNonceManager : NonceManager
interface StringValues
open class StringValuesBuilder
open class StringValuesImpl : StringValues
open class StringValuesSingleImpl : StringValues
enum class WeekDay
java.io.File
java.io.File
java.io.InputStream
Module Contents
fun InputStream.toByteReadChannel(pool: ObjectPool<ByteBuffer> = KtorDefaultPool, context: <ERROR CLASS> = Dispatchers.Unconfined, parent: Job = Job()): ByteReadChannel
java.lang.Class
java.nio.ByteBuffer
java.nio.channels.ReadableByteChannel
java.nio.channels.WritableByteChannel
java.nio.file.Path
java.nio.file.Path
java.time.Instant
java.time.ZonedDateTime
java.util.Date
Module Contents
fun Date.toLocalDateTime(): LocalDateTime
fun Date.toZonedDateTime(): ZonedDateTime
kotlin.ByteArray
kotlin.Char
kotlin.String
kotlin.collections.Set
kotlin.ranges.LongRange
kotlinx.coroutines.Job
kotlinx.coroutines.io.ByteReadChannel
kotlinx.coroutines.io.ByteReadChannel
kotlinx.coroutines.io.ByteWriteChannel
kotlinx.coroutines.io.ByteWriteChannel
kotlinx.io.core.ByteReadPacket
kotlinx.io.core.Input
org.slf4j.Logger
package io.ktor.util
Module Contents
object AlwaysFailNonceManager : NonceManager
class AttributeKey<T>
expect fun Attributes(concurrent: Boolean = false): Attributes
interface Attributes
class CaseInsensitiveMap<Value> : MutableMap<String, Value>
val Deflate: Encoder
expect fun Digest(name: String): Digest
interface Digest
interface Encoder
val GZip: Encoder
object GenerateOnlyNonceManager : NonceManager
val GreenwichMeanTime: ZoneId
object Hash
object Identity : Encoder
@Target([AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.CONSTRUCTOR]) annotation class InternalAPI
@Target([AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.CONSTRUCTOR]) annotation class KtorExperimentalAPI
expect class Lock
expect class LockTicket
interface NonceManager
expect class ReadWriteLock
class StatelessHmacNonceManager : NonceManager
interface StringValues
open class StringValuesBuilder
open class StringValuesImpl : StringValues
open class StringValuesSingleImpl : StringValues
fun StringValuesBuilder.appendAll(builder: StringValuesBuilder): StringValuesBuilder
fun StringValuesBuilder.appendFiltered(source: StringValues, keepEmpty: Boolean = false, predicate: (String, String) -> Boolean): Unit
suspend fun Digest.build(bytes: ByteArray): ByteArray
suspend fun Digest.build(string: String, charset: Charset = Charsets.UTF_8): ByteArray
fun <Value> caseInsensitiveMap(): MutableMap<String, Value>
fun StringValues.filter(keepEmpty: Boolean = false, predicate: (String, String) -> Boolean): StringValues
fun StringValues.flattenEntries(): List<Pair<String, String>>
fun StringValues.flattenForEach(block: (String, String) -> Unit): Unit
expect fun generateNonce(): String
fun generateNonce(size: Int): ByteArray
fun getDigestFunction(algorithm: String, salt: String): (String) -> ByteArray
fun getDigestFunction(algorithm: String, salt: (value: String) -> String): (String) -> ByteArray
fun hex(bytes: ByteArray): String
fun hex(s: String): ByteArray
java.io.File
java.lang.Class
java.nio.ByteBuffer
java.nio.channels.ReadableByteChannel
java.nio.channels.WritableByteChannel
java.nio.file.Path
java.util.Date
Module Contents
fun Date.toLocalDateTime(): LocalDateTime
fun Date.toZonedDateTime(): ZonedDateTime
kotlin.ByteArray
kotlin.Char
kotlin.String
kotlin.collections.Set
kotlin.ranges.LongRange
kotlinx.coroutines.Job
kotlinx.coroutines.io.ByteReadChannel
kotlinx.coroutines.io.ByteWriteChannel
kotlinx.io.core.ByteReadPacket
kotlinx.io.core.Input
fun nextNonce(): String
val nonceRandom: Random
org.slf4j.Logger
fun raw(s: String): ByteArray
expect fun sha1(bytes: ByteArray): ByteArray
fun StringValues.toMap(): Map<String, List<String>>
inline fun <R> Lock.use(block: () -> R): R
fun valuesOf(vararg pairs: Pair<String, List<String>>, caseInsensitiveKey: Boolean = false): StringValues
fun valuesOf(name: String, value: String, caseInsensitiveKey: Boolean = false): StringValues
fun valuesOf(name: String, values: List<String>, caseInsensitiveKey: Boolean = false): StringValues
fun valuesOf(): StringValues
fun valuesOf(map: Map<String, Iterable<String>>, caseInsensitiveKey: Boolean = false): StringValues
package io.ktor.util.cio
package io.ktor.util.collections
package io.ktor.util.date
package io.ktor.util.pipeline
Module Contents
@DslMarker @Target([AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS, AnnotationTarget.TYPE, AnnotationTarget.FUNCTION]) annotation class ContextDsl
class InvalidPhaseException : Throwable
open class Pipeline<TSubject : Any, TContext : Any>
interface PipelineContext<TSubject : Any, TContext : Any> : CoroutineScope
interface PipelineExecutor<R>
typealias PipelineInterceptor<TSubject, TContext> = suspend PipelineContext<TSubject, TContext>.(TSubject) -> Unit
class PipelinePhase
inline suspend fun <TContext : Any> Pipeline<Unit, TContext>.execute(context: TContext): Unit
inline fun <reified TSubject : Any, TContext : Any> Pipeline<*, TContext>.intercept(phase: PipelinePhase, noinline block: suspend PipelineContext<TSubject, TContext>.(TSubject) -> Unit): Unit
fun <TSubject : Any, TContext : Any> pipelineExecutorFor(context: TContext, interceptors: List<PipelineInterceptor<TSubject, TContext>>, subject: TSubject): PipelineExecutor<TSubject>