Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ContinueInterceptor(val thresholdLengthBytes: Long)

An interceptor that adds an HTTP Expect: 100-continue header to requests with bodies at a certain length threshold. Bodies with an unset contentLength will get the continue header added regardless of length.

Link copied to clipboard
class DiscoveredEndpointErrorInterceptor(errorType: KClass<out <Error class: unknown class>>, invalidate: (<Error class: unknown class>) -> Unit)

This interceptor detects a discovered endpoint error and calls a specific invalidate lambda. Receiving such an error indicates that a discovered endpoint is no longer valid (e.g., has expired) and the endpoint should be re-discovered.

Link copied to clipboard
class FlexibleChecksumsRequestInterceptor<I>(checksumAlgorithmNameInitializer: (I) -> String?? = null) : AbstractChecksumInterceptor

Mutate a request to enable flexible checksums.

Link copied to clipboard
class FlexibleChecksumsResponseInterceptor<I>(shouldValidateResponseChecksumInitializer: (input: I) -> Boolean)

Validate a response's checksum.

Link copied to clipboard
typealias HttpInterceptor = <Error class: unknown class><Any, Any, <Error class: unknown class>, <Error class: unknown class>>
Link copied to clipboard
class Md5ChecksumInterceptor<I>(block: (input: I) -> Boolean? = null) : AbstractChecksumInterceptor

Set the Content-MD5 header based on the current payload See:

Link copied to clipboard
class RequestCompressionInterceptor(compressionThresholdBytes: Long, availableCompressionAlgorithms: List<<Error class: unknown class>>, supportedCompressionAlgorithms: List<String>)

HTTP interceptor that compresses request payloads

Link copied to clipboard

An interceptor which compares the Content-Length header value against the length of the returned body. Throws an IllegalStateException if there is a mismatch.

Link copied to clipboard
Link copied to clipboard

Interceptor for smoke test runner clients.

Link copied to clipboard