Package io.vertx.mutiny.httpproxy
Class Body
- java.lang.Object
-
- io.vertx.mutiny.httpproxy.Body
-
public class Body extends Object
Handles the HTTP proxy body.original
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Body>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Body
body(Buffer buffer)
static Body
body(ReadStream<Buffer> stream)
static Body
body(ReadStream<Buffer> stream, long len)
static Body
body(Flow.Publisher<Buffer> stream)
static Body
body(Flow.Publisher<Buffer> stream, long len)
boolean
equals(Object o)
io.vertx.httpproxy.Body
getDelegate()
int
hashCode()
long
length()
static Body
newInstance(io.vertx.httpproxy.Body arg)
ReadStream<Buffer>
stream()
String
toString()
-
-
-
Constructor Detail
-
Body
public Body(io.vertx.httpproxy.Body delegate)
-
Body
public Body(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.httpproxy.Body getDelegate()
-
body
public static Body body(ReadStream<Buffer> stream, long len)
- Parameters:
stream
- theReadStream
of the bodylen
- 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
- theReadStream
of the bodylen
- 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)
-
-