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

com.ancientlightstudios.quarkus.kotlin.openapi.inspection.ResponseInspection.kt Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy