Package | Description |
---|---|
io.vertx.core.http | |
io.vertx.ext.web | |
io.vertx.openapi.validation | |
io.vertx.reactivex.core.http | |
io.vertx.rxjava.core.http | |
io.vertx.rxjava3.core.http |
Modifier and Type | Method and Description |
---|---|
HttpServerResponse |
HttpServerResponse.addCookie(Cookie cookie)
Add a cookie.
|
HttpServerResponse |
HttpServerResponse.bodyEndHandler(Handler<Void> handler)
Provides a handler that will be called after the last part of the body is written to the wire.
|
HttpServerResponse |
HttpServerResponse.closeHandler(Handler<Void> handler)
Set a close handler for the response, this is called when the underlying connection is closed and the response
was still using the connection.
|
HttpServerResponse |
HttpServerResponse.drainHandler(Handler<Void> handler) |
HttpServerResponse |
HttpServerResponse.endHandler(Handler<Void> handler)
Set an end handler for the response.
|
HttpServerResponse |
HttpServerResponse.exceptionHandler(Handler<Throwable> handler) |
HttpServerResponse |
HttpServerResponse.headersEndHandler(Handler<Void> handler)
Provide a handler that will be called just before the headers are written to the wire.
|
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
push(HttpMethod, String, String, MultiMap, Handler) with the host copied from the current request. |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
push(HttpMethod, String, String, MultiMap, Handler) with the host copied from the current request. |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
push(HttpMethod, String, String, MultiMap, Handler) with no headers. |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Push a response to the client.
The
handler will 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 handler may 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. |
HttpServerResponse |
HttpServerResponse.putHeader(CharSequence name,
CharSequence value)
Like
putHeader(String, String) but using CharSequence |
HttpServerResponse |
HttpServerResponse.putHeader(CharSequence name,
Iterable<CharSequence> values)
Like
putHeader(String, Iterable) but with CharSequence Iterable |
HttpServerResponse |
HttpServerResponse.putHeader(String name,
Iterable<String> values)
Like
putHeader(String, String) but providing multiple values via a String Iterable |
HttpServerResponse |
HttpServerResponse.putHeader(String name,
String value)
Put an HTTP header
|
HttpServerResponse |
HttpServerResponse.putTrailer(CharSequence name,
CharSequence value)
Like
putTrailer(String, String) but using CharSequence |
HttpServerResponse |
HttpServerResponse.putTrailer(CharSequence name,
Iterable<CharSequence> value)
Like
putTrailer(String, Iterable) but with CharSequence Iterable |
HttpServerResponse |
HttpServerResponse.putTrailer(String name,
Iterable<String> values)
Like
putTrailer(String, String) but providing multiple values via a String Iterable |
HttpServerResponse |
HttpServerResponse.putTrailer(String name,
String value)
Put an HTTP trailer
|
HttpServerResponse |
HttpServerRequest.response() |
default HttpServerResponse |
HttpServerResponse.sendFile(String filename,
Handler<AsyncResult<Void>> resultHandler)
Like
sendFile(String) but providing a handler which will be notified once the file has been completely
written to the wire. |
default HttpServerResponse |
HttpServerResponse.sendFile(String filename,
long offset,
Handler<AsyncResult<Void>> resultHandler)
Like
sendFile(String, long) but providing a handler which will be notified once the file has been completely
written to the wire. |
HttpServerResponse |
HttpServerResponse.sendFile(String filename,
long offset,
long length,
Handler<AsyncResult<Void>> resultHandler)
Like
sendFile(String, long, long) but providing a handler which will be notified once the file has been
completely written to the wire. |
HttpServerResponse |
HttpServerResponse.setChunked(boolean chunked)
If
chunked is true , this response will use HTTP chunked encoding, and each call to write to the body
will correspond to a new HTTP chunk sent on the wire. |
HttpServerResponse |
HttpServerResponse.setStatusCode(int statusCode)
Set the status code.
|
HttpServerResponse |
HttpServerResponse.setStatusMessage(String statusMessage)
Set the status message
|
default HttpServerResponse |
HttpServerResponse.setStreamPriority(StreamPriority streamPriority)
Sets the priority of the associated stream
This is not implemented for HTTP/1.x.
|
HttpServerResponse |
HttpServerResponse.setWriteQueueMaxSize(int maxSize) |
HttpServerResponse |
HttpServerResponse.writeContinue()
Used to write an interim 100 Continue response to signify that the client should send the rest of the request.
|
default HttpServerResponse |
HttpServerResponse.writeCustomFrame(HttpFrame frame)
Like
writeCustomFrame(int, int, Buffer) but with an HttpFrame . |
HttpServerResponse |
HttpServerResponse.writeCustomFrame(int type,
int flags,
Buffer payload)
Write an HTTP/2 frame to the response, allowing to extend the HTTP/2 protocol.
|
Modifier and Type | Method and Description |
---|---|
Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
HostAndPort authority,
String path,
MultiMap headers)
Same as
push(HttpMethod, String, String, MultiMap, Handler) but with an handler called when the operation completes |
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String path)
Same as
push(HttpMethod, String, Handler) but with an handler called when the operation completes |
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers)
Same as
push(HttpMethod, String, MultiMap, Handler) but with an handler called when the operation completes |
default Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String host,
String path)
Same as
push(HttpMethod, String, String, Handler) but with an handler called when the operation completes |
Future<HttpServerResponse> |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers)
Deprecated.
instead use
push(HttpMethod, HostAndPort, String, MultiMap) |
Modifier and Type | Method and Description |
---|---|
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
push(HttpMethod, String, String, MultiMap, Handler) with the host copied from the current request. |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
push(HttpMethod, String, String, MultiMap, Handler) with the host copied from the current request. |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
Handler<AsyncResult<HttpServerResponse>> handler)
Like
push(HttpMethod, String, String, MultiMap, Handler) with no headers. |
default HttpServerResponse |
HttpServerResponse.push(HttpMethod method,
String host,
String path,
MultiMap headers,
Handler<AsyncResult<HttpServerResponse>> handler)
Push a response to the client.
The
handler will 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 handler may 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. |
Modifier and Type | Method and Description |
---|---|
HttpServerResponse |
RoutingContext.response() |
Modifier and Type | Method and Description |
---|---|
Future<Void> |
ValidatedResponse.send(HttpServerResponse serverResponse)
Add all parameters from the validated response to the passed
HttpServerResponse and send it. |
Modifier and Type | Method and Description |
---|---|
HttpServerResponse |
HttpServerResponse.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpServerResponse |
HttpServerResponse.newInstance(HttpServerResponse arg) |
Constructor and Description |
---|
HttpServerResponse(HttpServerResponse delegate) |
Modifier and Type | Method and Description |
---|---|
HttpServerResponse |
HttpServerResponse.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpServerResponse |
HttpServerResponse.newInstance(HttpServerResponse arg) |
Constructor and Description |
---|
HttpServerResponse(HttpServerResponse delegate) |
Modifier and Type | Method and Description |
---|---|
HttpServerResponse |
HttpServerResponse.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpServerResponse |
HttpServerResponse.newInstance(HttpServerResponse arg) |
Constructor and Description |
---|
HttpServerResponse(HttpServerResponse delegate) |
Copyright © 2024 Eclipse. All rights reserved.