Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class RouteIdentityHandlerFunction(val delegate: HandlerFunction<ServerResponse>, routeIdentity: RouteIdentity) : HandlerFunction<ServerResponse>

delegate, given the identity binding of its route on every request.

Link copied to clipboard
class RouterFunctionBuilder(routerSpecs: RouterSpecs, routeHandlerFunctionRegistrar: RouteHandlerFunctionRegistrar, identityHeaderAliases: IdentityHeaderAliases = IdentityHeaderAliases.NONE)

org.springframework.web.reactive.function.server.support.RouterFunctionMapping

Link copied to clipboard
object StringServerSentEventType : ParameterizedTypeReference<ServerSentEvent<String>>

Functions

Link copied to clipboard
fun Flux<ServerSentEvent<String>>.errorResume(request: ServerRequest, exceptionHandler: RequestExceptionHandler): Flux<ServerSentEvent<String>>
Link copied to clipboard
fun ContextView.getRawRequest(): ServerRequest?
Link copied to clipboard

Maps a failure to read the request body as the route's type to 400 (ServerWebInputException).

Link copied to clipboard
fun ServerRequest.preferredResponseMediaType(supportedMediaTypes: List<MediaType>): MediaType
Link copied to clipboard
fun Flux<AggregateId>.toBatchResult(afterId: String, request: ServerRequest, exceptionHandler: RequestExceptionHandler): Mono<BatchResult>

The batch's result: the highest id processed and how many, or, when the batch fails, its error mapped and logged by RequestExceptionHandler.handleInBody, like every other error of request.

Link copied to clipboard
fun Flux<ServerSentEvent<String>>.toEventStreamResponse(request: ServerRequest, exceptionHandler: RequestExceptionHandler): Mono<ServerResponse>
Link copied to clipboard
fun <T : Any> Flux<T>.toServerResponse(request: ServerRequest, exceptionHandler: RequestExceptionHandler): Mono<ServerResponse>
fun Mono<*>.toServerResponse(request: ServerRequest, exceptionHandler: RequestExceptionHandler): Mono<ServerResponse>
Link copied to clipboard
fun <T : Any> Flux<T>.writeRawRequest(request: ServerRequest): Flux<T>
fun <T : Any> Mono<T>.writeRawRequest(request: ServerRequest): Mono<T>