Package io.vertx.rxjava3.httpproxy
Class Body
- java.lang.Object
-
- io.vertx.rxjava3.httpproxy.Body
-
- All Implemented Interfaces:
RxDelegate
public class Body extends Object implements RxDelegate
Handles the HTTP proxy body.original
non RX-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(io.reactivex.rxjava3.core.Flowable<Buffer> stream)
Create a newBody
instance.static Body
body(io.reactivex.rxjava3.core.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()
-
-
-
Method Detail
-
getDelegate
public Body getDelegate()
- Specified by:
getDelegate
in interfaceRxDelegate
-
body
public static Body body(io.reactivex.rxjava3.core.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(io.reactivex.rxjava3.core.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
-
-