sunday
1.0.0-beta.18
sunday-jdk
/
io.outfoxx.sunday.jdk
/
JdkRequest
/
RequestEventBodyHandler
/
Subscriber
Subscriber
class
Subscriber
(
channel
:
SendChannel
<
Request.Event
>
)
:
HttpResponse.BodySubscriber
<
Unit
>
Constructors
Functions
Properties
Constructors
Subscriber
Link copied to clipboard
fun
Subscriber
(
channel
:
SendChannel
<
Request.Event
>
)
Functions
get
Body
Link copied to clipboard
open
override
fun
getBody
(
)
:
CompletionStage
<
Unit
>
on
Complete
Link copied to clipboard
open
override
fun
onComplete
(
)
on
Error
Link copied to clipboard
open
override
fun
onError
(
throwable
:
Throwable
)
on
Next
Link copied to clipboard
open
override
fun
onNext
(
item
:
MutableList
<
ByteBuffer
>
)
on
Subscribe
Link copied to clipboard
open
override
fun
onSubscribe
(
subscription
:
Flow.Subscription
)
Properties
body
Future
Link copied to clipboard
val
bodyFuture
:
CompletableFuture
<
Unit
>