FlexibleChecksumsResponseInterceptor
class FlexibleChecksumsResponseInterceptor<I>(shouldValidateResponseChecksumInitializer: (input: I) -> Boolean)
Validate a response's checksum.
Wraps the response in a hashing body, calculating the checksum as the response is streamed to the user. The checksum is validated after the user has consumed the entire body using a checksum validating body. Users can check which checksum was validated by referencing the ResponseChecksumValidated
execution context variable.
Parameters
shouldValidateResponseChecksumInitializer
A function which uses the input I to return whether response checksum validation should occur
Functions
Link copied to clipboard
open suspend fun modifyBeforeDeserialization(context: <Error class: unknown class><Any, <Error class: unknown class>, <Error class: unknown class>>): <Error class: unknown class>
Link copied to clipboard