| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private long | |
| private boolean | |
| private Handler | |
| private final Http1xServerConnection | |
| private final ContextInternal | |
| private CookieJar | |
| private Handler | |
| private static final Buffer | EMPTY_BUFFER
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private Handler | |
| private Handler | |
| private final boolean | |
| private final HeadersMultiMap | |
| private Handler | |
| private boolean | |
| private final boolean | |
| private static final Logger | |
| private Future | |
| private final HttpRequest | |
| private final Object | |
| private static final String | |
| private HttpResponseStatus | |
| private String | |
| private MultiMap | |
| private HttpHeaders | |
| private final HttpVersion | |
| private final VertxInternal | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | Http1xServerResponse(VertxInternal vertx, ContextInternal context, Http1xServerConnection conn, HttpRequest request, Object requestMetric, boolean writable, boolean keepAlive)
|
| Modifier and Type | Method and Description |
|---|---|
| public HttpServerResponse | addCookie(Cookie
the cookie cookie)Implements io. Add a cookie. |
| public HttpServerResponse | |
| public long | |
| private void | |
| private void | |
| public void | close()
Implements io. Close the underlying TCP connection corresponding to the request. |
| private void | |
| public boolean | |
| public HttpServerResponse | |
| pack-priv void | |
| pack-priv CookieJar | |
| private void | |
| public HttpServerResponse | |
| public Future | end(String
the string to write before ending the response chunk)Implements io. Same as |
| public void | end(String chunk, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | end(String
the string to write before ending the response chunk, String the encoding to use enc)Implements io. Same as |
| public void | end(String chunk, String enc, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | end(Buffer
the buffer to write before ending the response chunk)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public void | end(Buffer chunk, Handler<AsyncResult<Void>> handler)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| private void | end(Buffer chunk, PromiseInternal<Void> listener)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public Future | |
| public void | end(Handler<AsyncResult<Void>> handler)
Overrides default io. Implements io. Same as |
| public boolean | |
| public HttpServerResponse | |
| public HttpServerResponse | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public int | |
| public String | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| public MultiMap | |
| public HttpServerResponse | |
| public boolean | |
| public boolean | |
| pack-priv Future | |
| private void | |
| public Future | push(HttpMethod method, HostAndPort authority, String path, MultiMap headers)
Implements io. Same as |
| public Future | push(HttpMethod
the method of the promised request method, String the host of the promised request host, String the path of the promised request path, MultiMap the headers of the promised request headers)Implements io. Push a response to the client. |
| public Http1xServerResponse | putHeader(String
the header name key, String the header value. value)Implements io. Put an HTTP header |
| public Http1xServerResponse | putHeader(String key, Iterable<String> values)
Implements io. Like |
| public HttpServerResponse | putHeader(CharSequence name, CharSequence value)
Implements io. Like |
| public HttpServerResponse | putHeader(CharSequence name, Iterable<CharSequence> values)
Implements io. Like |
| public Http1xServerResponse | putTrailer(String
the trailer name key, String the trailer value value)Implements io. Put an HTTP trailer |
| public Http1xServerResponse | putTrailer(String key, Iterable<String> values)
Implements io. Like |
| public HttpServerResponse | putTrailer(CharSequence name, CharSequence value)
Implements io. Like |
| public HttpServerResponse | putTrailer(CharSequence name, Iterable<CharSequence> value)
Implements io. Like |
| public @Nullable Cookie | removeCookie(String
the name of the cookie name, boolean invalidate)Implements io. Remove a cookie from the cookie set. |
| public @Nullable Cookie | removeCookie(String
the name of the cookie name, String the domain of the cookie domain, String the path of the cookie path, boolean invalidate)Implements io. Remove a cookie from the cookie set. |
| public @Nullable Set | removeCookies(String
the name of the cookie name, boolean invalidate from the user agent invalidate)Implements io. Remove all cookies from the cookie set. |
| private void | |
| public boolean | reset(long
the error code code)Implements io. Reset this response:
|
| public Future | sendFile(String
path to the file to serve filename, long offset to start serving from offset, long the number of bytes to send length)Implements io. Ask the OS to stream a file as specified by |
| public HttpServerResponse | sendFile(String
path to the file to serve filename, long the offset to serve from start, long length the number of bytes to send end, Handler<AsyncResult<Void>> handler that will be called on completion resultHandler)Implements io. Like |
| public Http1xServerResponse | setChunked(boolean chunked)
Implements io. If |
| private void | |
| public HttpServerResponse | setStatusCode(int statusCode)
Implements io. Set the status code. |
| public HttpServerResponse | setStatusMessage(String statusMessage)
Implements io. Set the status message |
| public HttpServerResponse | setWriteQueueMaxSize(int
the max size of the write stream size)Implements io. Set the maximum size of the write queue to |
| public int | |
| public int | |
| public MultiMap | |
| public Future | write(Buffer
the data to write chunk)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Write some data to the stream. |
| public void | write(Buffer chunk, Handler<AsyncResult<Void>> handler)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public Future | write(String
the string to write chunk, String the encoding to use enc)Implements io. Write a |
| public void | write(String chunk, String enc, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | write(String
the string to write chunk)Implements io. Write a |
| public void | write(String chunk, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| private Http1xServerResponse | |
| public HttpServerResponse | writeContinue()
Implements io. Used to write an interim 100 Continue response to signify that the client should send the rest of the request. |
| public HttpServerResponse | writeCustomFrame(int
the 8-bit frame type type, int the 8-bit frame flags flags, Buffer the frame payload payload)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Write an HTTP/2 frame to the response, allowing to extend the HTTP/2 protocol. |
| public Future | writeEarlyHints(MultiMap
headers to write headers)Implements io. Used to write an interim 103 Early Hints response to return some HTTP headers before the final HTTP message. |
| public void | writeEarlyHints(MultiMap
headers to write headers, Handler<AsyncResult<Void>> handler)Implements io. Same as |
| public boolean | writeQueueFull()
Implements io. This will return |