implicit final class VertxHttpServerResponseOps extends AnyVal
- Alphabetic
- By Inheritance
- VertxHttpServerResponseOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VertxHttpServerResponseOps(target: HttpServerResponse)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def endL(chunk: Buffer): Task[Unit]
Same as
#end(Buffer)but with anhandlercalled when the operation completes - def endL(chunk: String, enc: String): Task[Unit]
Same as
String)but with anhandlercalled when the operation completes - def endL(chunk: String): Task[Unit]
Same as
#end(String)but with anhandlercalled when the operation completes - def endL(): Task[Unit]
Same as
#end()but with anhandlercalled when the operation completes - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def pushL(method: HttpMethod, host: String, path: String, headers: MultiMap): Task[HttpServerResponse]
Push a response to the client.
Push a response to the client.
The
handlerwill be notified with a success when the push can be sent and with a failure when the client has disabled push or reset the push before it has been sent.The
handlermay be queued if the client has reduced the maximum number of streams the server can push concurrently.Push can be sent only for peer initiated streams and if the response is not ended.
- method
the method of the promised request
- host
the host of the promised request
- path
the path of the promised request
- headers
the headers of the promised request
- returns
a reference to this, so the API can be used fluently
- def pushL(method: HttpMethod, path: String): Task[HttpServerResponse]
Like
String, String, MultiMap, Handler)with the host copied from the current request. - def pushL(method: HttpMethod, path: String, headers: MultiMap): Task[HttpServerResponse]
Like
String, String, MultiMap, Handler)with the host copied from the current request. - def pushL(method: HttpMethod, host: String, path: String): Task[HttpServerResponse]
Like
String, String, MultiMap, Handler)with no headers. - def sendFileL(filename: String, offset: Long, length: Long): Task[Unit]
Like
long, long)but providing a handler which will be notified once the file has been completely written to the wire.Like
long, long)but providing a handler which will be notified once the file has been completely written to the wire.- filename
path to the file to serve
- offset
the offset to serve from
- length
the length to serve to
- returns
a reference to this, so the API can be used fluently
- def sendFileL(filename: String, offset: Long): Task[Unit]
Like
long)but providing a handler which will be notified once the file has been completely written to the wire.Like
long)but providing a handler which will be notified once the file has been completely written to the wire.- filename
path to the file to serve
- offset
the offset to serve from
- returns
a reference to this, so the API can be used fluently
- def sendFileL(filename: String): Task[Unit]
Like
#sendFile(String)but providing a handler which will be notified once the file has been completely written to the wire.Like
#sendFile(String)but providing a handler which will be notified once the file has been completely written to the wire.- filename
path to the file to serve
- returns
a reference to this, so the API can be used fluently
- val target: HttpServerResponse
- def toString(): String
- Definition Classes
- Any
- def writeL(chunk: String): Task[Unit]
Same as
#write(String)but with anhandlercalled when the operation completes - def writeL(chunk: String, enc: String): Task[Unit]
Same as
String)but with anhandlercalled when the operation completes - def writeL(data: Buffer): Task[Unit]
Same as
#write(Buffer)but with anhandlercalled when the operation completes