Interface MessageBodyWriter<T>

    • Method Detail

      • write

        Flow.Publisher<DataChunk> write​(Single<? extends T> single,
                                        GenericType<? extends T> type,
                                        MessageBodyWriterContext context)
        Generate HTTP payload from the objects of the given type.
        Parameters:
        single - object single publisher to convert to payload
        type - requested type
        context - the context providing the headers abstraction
        Returns:
        Publisher of objects