StompErrorHeaders

Creates an instance of StompErrorHeaders. All headers are optional and can be configured using the configure lambda.


fun StompErrorHeaders(message: String? = null, receiptId: String? = null, customHeaders: Map<String, String> = emptyMap()): StompErrorHeaders

Deprecated

This overload will be removed in a future version, please use the overload with lambda instead to set optional headers.

Replace with

import org.hildan.krossbow.stomp.headers.StompErrorHeaders
StompErrorHeaders {
    this.message = message
    this.receiptId = receiptId
    this.putAll(customHeaders)
}