Class Body


  • public class Body
    extends Object
    Handles the HTTP proxy body.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Field Detail

      • __TYPE_ARG

        public static final io.smallrye.mutiny.vertx.TypeArg<Body> __TYPE_ARG
    • Constructor Detail

      • Body

        public Body​(io.vertx.httpproxy.Body delegate)
      • Body

        public Body​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.httpproxy.Body getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • body

        public static Body body​(io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> stream,
                                long len)
        Parameters:
        stream - the ReadStream of the body
        len - the determined length of the body
        Returns:
        a reference to this, so the API can be used fluently
      • body

        public static Body body​(Flow.Publisher<io.vertx.mutiny.core.buffer.Buffer> stream,
                                long len)
        Parameters:
        stream - the ReadStream of the body
        len - the determined length of the body
        Returns:
        a reference to this, so the API can be used fluently
      • body

        public static Body body​(io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> stream)
        Parameters:
        stream - the of the body
        Returns:
        a reference to this, so the API can be used fluently
      • body

        public static Body body​(Flow.Publisher<io.vertx.mutiny.core.buffer.Buffer> stream)
        Parameters:
        stream - the of the body
        Returns:
        a reference to this, so the API can be used fluently
      • body

        public static Body body​(io.vertx.mutiny.core.buffer.Buffer buffer)
        Parameters:
        buffer - the of the body
        Returns:
        a reference to this, so the API can be used fluently
      • length

        public long length()
        Returns:
        the body length or -1 if that can't be determined
      • stream

        public io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> stream()
        Returns:
        the body stream
      • newInstance

        public static Body newInstance​(io.vertx.httpproxy.Body arg)