beginRequest

abstract fun beginRequest(url: String, method: String, headers: Headers, requestBody: CapturedBody?, contentType: MediaType?): TransactionId

Records the start of a request to url with the given method, headers, optional requestBody, and contentType, returning a TransactionId to correlate completion calls. The requestBody carries the captured text plus its truncation flag and full byte size.