![JAR search and dependency download from the Maven repository](/logo.png)
com.ancientlightstudios.quarkus.kotlin.openapi.inspection.ResponseInspection.kt Maven / Gradle / Ivy
package com.ancientlightstudios.quarkus.kotlin.openapi.inspection
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.TransformableResponse
class ResponseInspection(val response: TransformableResponse) {
fun headers(block: ResponseHeaderInspection.() -> Unit) =
response.headers.forEach { ResponseHeaderInspection(it).block() }
fun body(block: BodyInspection.() -> Unit) = response.body?.let { BodyInspection(it).block() }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy