All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lsdconsulting.interceptors.common.Headers.kt Maven / Gradle / Ivy

Go to download

Provides various interceptors to capture events for the lsd-core library to generate sequence diagrams

There is a newer version: 8.0.73
Show newest version
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