Class Body

java.lang.Object
io.vertx.mutiny.httpproxy.Body
All Implemented Interfaces:
MutinyDelegate

public class Body extends Object implements MutinyDelegate
Handles the HTTP proxy body.

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

  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Body> __TYPE_ARG
  • Constructor Details

    • Body

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

      public Body(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.httpproxy.Body getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public static Body body(ReadStream<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<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(ReadStream<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<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(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 ReadStream<Buffer> stream()
      Returns:
      the body stream
    • newInstance

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