public interface HttpServerRequestStream extends ReadStream<HttpServerRequest>
A ReadStream
of HttpServerRequest
, used for
notifying http request to a HttpServer
.
Modifier and Type | Method and Description |
---|---|
HttpServerRequestStream |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
HttpServerRequestStream |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler.
|
HttpServerRequestStream |
handler(Handler<HttpServerRequest> handler)
Set a data handler.
|
HttpServerRequestStream |
pause()
Pause the
ReadSupport . |
HttpServerRequestStream |
resume()
Resume reading.
|
HttpServerRequestStream exceptionHandler(Handler<Throwable> handler)
StreamBase
Set an exception handler.
exceptionHandler
in interface ReadStream<HttpServerRequest>
exceptionHandler
in interface StreamBase
HttpServerRequestStream handler(Handler<HttpServerRequest> handler)
ReadStream
Set a data handler. As data is read, the handler will be called with the data.
handler
in interface ReadStream<HttpServerRequest>
HttpServerRequestStream pause()
ReadStream
Pause the ReadSupport
. While it’s paused, no data will be sent to the dataHandler
pause
in interface ReadStream<HttpServerRequest>
HttpServerRequestStream resume()
ReadStream
Resume reading. If the ReadSupport
has been paused, reading will recommence on it.
resume
in interface ReadStream<HttpServerRequest>
HttpServerRequestStream endHandler(Handler<Void> endHandler)
ReadStream
Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.
endHandler
in interface ReadStream<HttpServerRequest>
Copyright © 2014. All Rights Reserved.