ContinueInterceptor

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.

Parameters

thresholdLengthBytes

The body length (in bytes) at which a continue header will be set. Bodies under this length will not get a continue header.

Constructors

Link copied to clipboard
constructor(thresholdLengthBytes: Long)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun modifyBeforeSigning(context: <Error class: unknown class><Any, <Error class: unknown class>>): <Error class: unknown class>