InteractionOptions

General controls for the Servirtium interactions and how they are recorded to the storage format. The manipulations are used to replace/remove any dynamic parts of the request (eg. "Date" header) so that the traffic can be correctly matched during the replay process.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun debugTraffic(): Boolean

Turn on/off the printing of raw HTTP traffic to the console.

Link copied to clipboard
open fun isBinary(contentType: ContentType?): Boolean

Determine if the content type from a message should be treated as binary.

Link copied to clipboard
open fun modify(request: Request): Request

Modify received requests before they are stored. Use this to replace/remove dynamic parts of the message before serialisation.

open fun modify(response: Response): Response

Modify received responses before they are stored. Use this to replace/remove dynamic parts of the message before serialisation.

Link copied to clipboard