StompSendHeaders
fun StompSendHeaders(destination: String, configure: StompSendHeadersBuilder.() -> Unit = {}): StompSendHeaders
Creates an instance of StompSendHeaders with the given destination. Optional headers can be configured using the configure lambda.
fun StompSendHeaders(destination: String, transaction: String? = null, receipt: String? = null, customHeaders: Map<String, String> = emptyMap()): StompSendHeaders
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.StompSendHeaders
Content copied to clipboard
StompSendHeaders(destination) {
this.transaction = transaction
this.receipt = receipt
putAll(customHeaders)
}Content copied to clipboard