Interface ServerHttpRequest<B>

Type Parameters:
B - The body type
All Superinterfaces:
AttributeHolder, HttpMessage<B>, HttpRequest<B>, MutableAttributeHolder
All Known Implementing Classes:
NettyHttpRequest

public interface ServerHttpRequest<B> extends HttpRequest<B>
This interface extends HttpRequest with methods that are specific to a request received by an HTTP server.
  • Method Details

    • byteBody

      Get the bytes of the body. The body is owned by the request, so the caller should generally not close it or do any primary operations. The body is usually consumed by the argument binder of the controller, e.g. if it has a @Body argument. If you want to use the body, ByteBody.split(ByteBody.SplitBackpressureMode) it first.
      Returns:
      The body bytes of this request