Class Body


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

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

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<Body> __TYPE_ARG
    • Constructor Detail

      • Body

        public Body​(Body delegate)
      • Body

        public Body​(Object delegate)
    • Method Detail

      • hashCode

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

        public Body getDelegate()
      • body

        public static Body body​(Flowable<Buffer> stream,
                                long len)
        Create a new Body instance.
        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​(Flowable<Buffer> stream)
        Create a new Body instance.
        Parameters:
        stream - the of the body
        Returns:
        a reference to this, so the API can be used fluently
      • body

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

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

        public ReadStream<Buffer> stream()
        Get stream of the Body.
        Returns:
        the body stream
      • newInstance

        public static Body newInstance​(Body arg)