Uses of Interface
io.vertx.core.http.HttpServerResponse
Packages that use HttpServerResponse
-
Uses of HttpServerResponse in io.vertx.core.http
Methods in io.vertx.core.http that return HttpServerResponseModifier and TypeMethodDescriptionAdd a cookie.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.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.drainHandler(Handler<Void> handler) HttpServerResponse.endHandler(Handler<Void> handler) Set an end handler for the response.HttpServerResponse.exceptionHandler(Handler<Throwable> handler) HttpServerResponse.headersEndHandler(Handler<Void> handler) Provide a handler that will be called just before the headers are written to the wire.HttpServerResponse.putHeader(CharSequence name, CharSequence value) LikeputHeader(String, String)but using CharSequenceHttpServerResponse.putHeader(CharSequence name, Iterable<CharSequence> values) LikeputHeader(String, Iterable)but with CharSequence IterableLikeputHeader(String, String)but providing multiple values via a String IterablePut an HTTP headerHttpServerResponse.putTrailer(CharSequence name, CharSequence value) LikeputTrailer(String, String)but using CharSequenceHttpServerResponse.putTrailer(CharSequence name, Iterable<CharSequence> value) LikeputTrailer(String, Iterable)but with CharSequence IterableHttpServerResponse.putTrailer(String name, Iterable<String> values) LikeputTrailer(String, String)but providing multiple values via a String IterableHttpServerResponse.putTrailer(String name, String value) Put an HTTP trailerHttpServerRequest.response()HttpServerResponse.setChunked(boolean chunked) Ifchunkedistrue, 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.setStatusCode(int statusCode) Set the status code.HttpServerResponse.setStatusMessage(String statusMessage) Set the status messagedefault HttpServerResponseHttpServerResponse.setStreamPriority(StreamPriority streamPriority) Sets the priority of the associated streamHttpServerResponse.setWriteQueueMaxSize(int maxSize) Methods in io.vertx.core.http that return types with arguments of type HttpServerResponseModifier and TypeMethodDescriptiondefault Future<HttpServerResponse> HttpServerResponse.push(HttpMethod method, HostAndPort authority, String path) Likepush(HttpMethod, HostAndPort, String, MultiMap)with no headers.HttpServerResponse.push(HttpMethod method, HostAndPort authority, String path, MultiMap headers) Push a response to the client.default Future<HttpServerResponse> HttpServerResponse.push(HttpMethod method, String path) Likepush(HttpMethod, HostAndPort, String, MultiMap)with the host copied from the current request.default Future<HttpServerResponse> HttpServerResponse.push(HttpMethod method, String path, MultiMap headers) Likepush(HttpMethod, HostAndPort, String, MultiMap)with the host copied from the current request.