Interface FullHttpRequest<B>

Type Parameters:
B - The body type
All Superinterfaces:
io.micronaut.core.attr.AttributeHolder, HttpMessage<B>, HttpRequest<B>, io.micronaut.core.attr.MutableAttributeHolder

@Internal @Deprecated public interface FullHttpRequest<B> extends HttpRequest<B>
Deprecated.
Allows introspecting whether the request is a full http request.
Since:
1.1.0
  • Method Details

    • isFull

      default boolean isFull()
      Deprecated.
      Shortcut for contents() != null.
      Returns:
      Is the request full.
    • contents

      @Nullable @Nullable io.micronaut.core.io.buffer.ByteBuffer<?> contents()
      Deprecated.
      Get the raw body of this request. May be called multiple times. Buffer ownership is not transferred to the caller.
      Returns:
      The body contents or null if there are none, or they are not obtainable.
    • bufferContents

      @Nullable @Nullable io.micronaut.core.execution.ExecutionFlow<io.micronaut.core.io.buffer.ByteBuffer<?>> bufferContents()
      Deprecated.
      Get the contents of this request as a buffer. If this is a streaming request, the returned flow may be delayed. If buffering is not supported for this request, this may return null. Once the returned flow completes, contents() must return the same value.
      Returns:
      The request content, or null if buffering is not supported