io.lsdconsulting.interceptors.common.Headers.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lsd-interceptors Show documentation
Show all versions of lsd-interceptors Show documentation
Provides various interceptors to capture events for the lsd-core library to generate sequence diagrams
package io.lsdconsulting.interceptors.common
fun singleValueMap(headers: Map>): Map {
return headers.mapValues { it.value.firstOrNull() ?: "" }
}
enum class HeaderKeys(private val headerName: String) {
SOURCE_NAME("Source-Name"),
TARGET_NAME("Target-Name");
fun key() = headerName
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy