Functions

Link copied to clipboard
abstract fun <T> getMediaType(type: KType, apiGen: OpenAPIGen, provider: ModuleProvider<*>, example: T?, usage: ContentTypeProvider.Usage): Map<ContentType, MediaTypeModel<T>>?

Done once when routes are created, for request object and response object

Link copied to clipboard
abstract fun <T : Any> getSerializableContentTypes(type: KType): List<ContentType>

used to determine which registered response serializer is used, based on the accept header

Link copied to clipboard
abstract suspend fun <T : Any> respond(response: T, request: RoutingContext, contentType: ContentType)
abstract suspend fun <T : Any> respond(statusCode: HttpStatusCode, response: T, request: RoutingContext, contentType: ContentType)