Package io.vertx.rxjava3.httpproxy
Class Body
- java.lang.Object
-
- io.vertx.rxjava3.httpproxy.Body
-
-
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 Bodybody(io.reactivex.rxjava3.core.Flowable<Buffer> stream)Create a newBodyinstance.static Bodybody(io.reactivex.rxjava3.core.Flowable<Buffer> stream, long len)Create a newBodyinstance.static Bodybody(Buffer buffer)Create a newBodyinstance.booleanequals(Object o)BodygetDelegate()inthashCode()longlength()Get length of theBody.static BodynewInstance(Body arg)ReadStream<Buffer>stream()Get stream of theBody.StringtoString()
-
-
-
Method Detail
-
getDelegate
public Body getDelegate()
-
body
public static Body body(io.reactivex.rxjava3.core.Flowable<Buffer> stream, long len)
Create a newBodyinstance.- Parameters:
stream- theReadStreamof 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(io.reactivex.rxjava3.core.Flowable<Buffer> stream)
Create a newBodyinstance.- 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 newBodyinstance.- 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
-1if that can't be determined
-
stream
public ReadStream<Buffer> stream()
Get stream of theBody.- Returns:
- the body stream
-
-