org.springframework.http.server.reactive

Class HttpHeadResponseDecorator

    • Constructor Detail

      • HttpHeadResponseDecorator

        public HttpHeadResponseDecorator(ServerHttpResponse delegate)
    • Method Detail

      • writeWith

        public final reactor.core.publisher.Mono<java.lang.Void> writeWith(org.reactivestreams.Publisher<? extends DataBuffer> body)
        Apply reduce on the body, count the number of bytes produced, release data buffers without writing, and set the Content-Length header.
        Specified by:
        writeWith in interface ReactiveHttpOutputMessage
        Overrides:
        writeWith in class ServerHttpResponseDecorator
        Parameters:
        body - the body content publisher
        Returns:
        a Mono that indicates completion or error