Package-level declarations

Types

Link copied to clipboard

Parses & Dispatches Server-Sent Events.

Link copied to clipboard
class EventSource(requestSupplier: suspend (Headers) -> Request, retryTime: Duration = retryTimeDefault, eventTimeout: Duration? = eventTimeoutDefault, eventTimeoutCheckInterval: Duration = eventTimeoutCheckIntervalDefault, logger: Logger = LoggerFactory.getLogger(EventSource::class.java)) : Closeable

Server-Sent Events stream client.

Link copied to clipboard
Link copied to clipboard
class MediaType(val type: MediaType.Type, val tree: MediaType.Tree = Tree.Standard, subtype: String = "*", val suffix: MediaType.Suffix? = null, parameters: Map<String, String> = emptyMap())

MIME Media type with support for parameters.

Link copied to clipboard
abstract class RequestFactory : Closeable

Factory for requests, responses and event sources.

Link copied to clipboard
class SundayError(message: String, val reason: SundayError.Reason? = null, cause: Throwable? = null) : RuntimeException
Link copied to clipboard
class URITemplate(val template: String, val parameters: Parameters = mapOf())

RFC 6570 URI template and parameters.