Interface ChunkedMessageBodyReader<T>

Type Parameters:
T - The type to read
All Superinterfaces:
MessageBodyReader<T>
All Known Implementing Classes:
StringBodyReader, TextPlainObjectBodyReader, WritableBodyWriter

public interface ChunkedMessageBodyReader<T> extends MessageBodyReader<T>
Variant of MessageBodyReader that allows piecewise reading of the input, e.g. for json-stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.reactivestreams.Publisher<? extends T>
    readChunked(@NonNull io.micronaut.core.type.Argument<T> type, @Nullable MediaType mediaType, @NonNull io.micronaut.core.type.Headers httpHeaders, @NonNull org.reactivestreams.Publisher<io.micronaut.core.io.buffer.ByteBuffer<?>> input)
     

    Methods inherited from interface io.micronaut.http.body.MessageBodyReader

    isReadable, read, read
  • Method Details

    • readChunked

      @NonNull @NonNull org.reactivestreams.Publisher<? extends T> readChunked(@NonNull @NonNull io.micronaut.core.type.Argument<T> type, @Nullable @Nullable MediaType mediaType, @NonNull @NonNull io.micronaut.core.type.Headers httpHeaders, @NonNull @NonNull org.reactivestreams.Publisher<io.micronaut.core.io.buffer.ByteBuffer<?>> input)