Package io.micronaut.http.body
package io.micronaut.http.body
-
ClassDescriptionThis is an extension of
ByteBodywhen the entire body is immediately available (without waiting).This class represents a stream of bytes from an HTTP connection.Exception that is sent to subscribers when the body is discarded as a result ofByteBody.allowDiscard()calls.This enum controls how backpressure should be handled if one of the two bodies ("downstreams") is consuming data slower than the other.Factory methods forByteBodys.Deprecated, for removal: This API element is subject to removal in a future version.Body writer forCharSequences.Variant ofMessageBodyReaderthat allows piecewise reading of the input, e.g.Combination ofCloseableByteBodyandAvailableByteBody.This is a reactive subscriber that acceptsByteBodys and concatenates them into a singleBaseSharedBuffer, optionally with separators.Fixed buffers to insert before, after and between items.MessageBodyHandlerRegistryimplementation that does not need an application context.Stores message body readers and writers.Internal extensions ofByteBody.Interface for bodies that provide their own media type.A handler combines a reader and a writer.A registry ofMessageBodyReaderandMessageBodyWriter.An interface that allows reading a message body from the client or the server.An interface that allows writing a message body for the client or the server.StreamingByteBodyimplementation based on NIOByteBuffers.Simple implementation ofBaseSharedBufferthat consumesByteBuffers.
Buffering is done using aByteArrayOutputStream.Extension toMessageBodyWriterthat is specific to writing the server response body.The body reader forString.The body reader that reads a text/plain string converting it into the argument type.A body handlerMessageBodyHandlerwith a type argument.A body readerMessageBodyReaderwith a type argument.A body writerMessageBodyWriterwith a type argument.Body writer forWritables.
ByteBodyFactory.adapt(io.micronaut.core.io.buffer.ByteBuffer<?>)