ResponseBuilder
class ResponseBuilder(context: OpenApiDslContext) : BodyBuilder, ResponseDsl, Builder<ApiResponse>
Content copied to clipboard
Builder for Response objects, implementing the ResponseDsl.
Constructors
Functions
Link copied to clipboard
open infix override fun String.content(builder: MediaTypeBuilder.() -> Unit)
Content copied to clipboard
Creates a content entry for this content type (the string receiver) and body (the builder configured by the lambda). See MediaTypeDsl for more information on what you can do in the lambda.
Link copied to clipboard
open operator fun ContentType.invoke(builder: MediaTypeBuilder.() -> Unit)
Content copied to clipboard
Creates a content entry for this content type and body. See MediaTypeDsl for more information on what you can do in the lambda.
open operator fun MultiContentType.invoke(builder: MediaTypeBuilder.() -> Unit)
Content copied to clipboard
Creates content entries for each of the provided content types with the same body. See MediaTypeDsl for more information on what you can do in the lambda.
Properties
Link copied to clipboard
ContentType object for application/x-www-form-urlencoded
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard