ComposerRequest

data class ComposerRequest(val method: String, val url: String, val headers: Map<String, String> = emptyMap(), val body: String? = null, val query: List<ComposerQueryParameter> = emptyList(), val bodyType: ComposerBodyType = if (body == null) ComposerBodyType.NONE else ComposerBodyType.TEXT, val formFields: Map<String, String> = emptyMap(), val multipartParts: List<ComposerMultipartPart> = emptyList(), val binaryBody: ComposerBinaryBody? = null, val timeoutMs: Int = DEFAULT_TIMEOUT_MS, val followRedirects: Boolean = true, val variables: List<ComposerVariable> = emptyList())

Constructors

Link copied to clipboard
constructor(method: String, url: String, headers: Map<String, String> = emptyMap(), body: String? = null, query: List<ComposerQueryParameter> = emptyList(), bodyType: ComposerBodyType = if (body == null) ComposerBodyType.NONE else ComposerBodyType.TEXT, formFields: Map<String, String> = emptyMap(), multipartParts: List<ComposerMultipartPart> = emptyList(), binaryBody: ComposerBinaryBody? = null, timeoutMs: Int = DEFAULT_TIMEOUT_MS, followRedirects: Boolean = true, variables: List<ComposerVariable> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
val body: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String
Link copied to clipboard

Functions

Link copied to clipboard
fun redacted(redaction: RedactionEngine): ComposerRequest

Returns the only representation that may be persisted or sent to a browser. Binary bytes and secret variable values are dropped; every remaining string crosses the active redaction boundary before it is copied.

Link copied to clipboard
Link copied to clipboard

Uses the default policy for source compatibility; runtime routes pass the host policy.

fun toRedactedMetadata(redaction: RedactionEngine): String

Safe for UI/state transfer and syntactically valid for arbitrary user-controlled strings.