Package io.vertx.rxjava3.httpproxy
Class Body
- java.lang.Object
-
- io.vertx.rxjava3.httpproxy.Body
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Body>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Body
body(Flowable<Buffer> stream)
Create a newBody
instance.static Body
body(Flowable<Buffer> stream, long len)
Create a newBody
instance.static Body
body(Buffer buffer)
Create a newBody
instance.boolean
equals(Object o)
Body
getDelegate()
int
hashCode()
long
length()
Get length of theBody
.static Body
newInstance(Body arg)
ReadStream<Buffer>
stream()
Get stream of theBody
.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<Body> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public Body getDelegate()
-
body
public static Body body(Flowable<Buffer> stream, long len)
Create a newBody
instance.- 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(Flowable<Buffer> stream)
Create a newBody
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 newBody
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 theBody
.- Returns:
- the body length or
-1
if that can't be determined
-
stream
public ReadStream<Buffer> stream()
Get stream of theBody
.- Returns:
- the body stream
-
-