servicetalk-http-api/src/main/java/io/servicetalk/http/api/StreamingHttpResponse.java
/**
     * Returns a {@link StreamingHttpResponse} with its underlying payload transformed to the result of serialization.
     * @param transformer A {@link Function} which take as a parameter the existing payload body {@link Publisher} and
     * returns the new payload body {@link Publisher} prior to serialization. It is assumed the existing payload body
     * {@link Publisher} will be transformed/consumed or else no more requests may be processed.
     * @param deserializer Used to deserialize the existing payload body.
     * @param serializer Used to serialize the payload body.
     * @param <T> The type of objects to deserialize.
     * @param <R> The type of objects to serialize.
     * @return {@code this}
     * @deprecated Use {@link #transformPayloadBody(Function, HttpStreamingDeserializer, HttpStreamingSerializer)}.
     */
Returns a  StreamingHttpResponse with its underlying payload transformed to the result of serialization.
@param transformer A  Function which take as a parameter the existing payload body  Publisher and
returns the new payload body  Publisher prior to serialization. It is assumed the existing payload body
Publisher will be transformed/consumed or else no more requests may be processed.
@param deserializer Used to deserialize the existing payload body.
@param serializer Used to serialize the payload body.
@param  The type of objects to deserialize.
@param  The type of objects to serialize.
Returns a StreamingHttpResponse with its underlying payload transformed to the result of serialization . @param transformer A Function which take as a parameter the existing payload body Publisher and returns the new payload body Publisher prior to serialization . It is assumed the existing payload body Publisher will be transformed / consumed or else no more requests may be processed . @param deserializer Used to deserialize the existing payload body . @param serializer Used to serialize the payload body . @param The type of objects to deserialize . @param The type of objects to serialize .
@Deprecated
    default <T, R> StreamingHttpResponse transformPayloadBody(Function<Publisher<T>, Publisher<R>> transformer,
                                                              HttpDeserializer<T> deserializer,
                                                              HttpSerializer<R> serializer) {
        return transformPayloadBody(bufferPublisher ->
                transformer.apply(deserializer.deserialize(headers(), bufferPublisher)), serializer);
    }
@ Deprecated default < T , R > StreamingHttpResponse transformPayloadBody ( Function < Publisher < T > , Publisher < R > > transformer , HttpDeserializer < T > deserializer , HttpSerializer < R > serializer ) { return transformPayloadBody ( bufferPublisher -> transformer . apply ( deserializer . deserialize ( headers ( ) , bufferPublisher ) ) , serializer ) ; }
Returns a {@link StreamingHttpResponse} with its underlying payload transformed to the result of serialization.
Returns a { @link StreamingHttpResponse } with its underlying payload transformed to the result of serialization .