Class ReactiveResponse.Content

  • Enclosing class:
    ReactiveResponse

    public static class ReactiveResponse.Content
    extends java.lang.Object
    Collects utility methods to process response content.
    • Constructor Summary

      Constructors 
      Constructor Description
      Content()  
    • Constructor Detail

      • Content

        public Content()
    • Method Detail

      • discard

        public static java.util.function.BiFunction<ReactiveResponse,​org.reactivestreams.Publisher<ContentChunk>,​org.reactivestreams.Publisher<ReactiveResponse>> discard()
        Returns:
        a response content processing function that discards the content
      • asString

        public static java.util.function.BiFunction<ReactiveResponse,​org.reactivestreams.Publisher<ContentChunk>,​org.reactivestreams.Publisher<java.lang.String>> asString()
        Returns:
        a response content processing function that converts the content to a string