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

org.http4k.security.ResponseMode.kt Maven / Gradle / Ivy

The newest version!
package org.http4k.security

enum class ResponseMode(val queryParameterValue: String) {
    Query("query"),
    Fragment("fragment");
//    FormPost("form_post");

    companion object {
        fun fromQueryParameterValue(value: String): ResponseMode =
            entries.find { it.queryParameterValue == value }
                ?: throw IllegalArgumentException("Invalid response mode: $value")
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy