| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private boolean | |
| private boolean | |
| private Handler | |
| private final Http2ServerConnection | |
| private final String | |
| private CookieJar | |
| private final ChannelHandlerContext | |
| private Handler | |
| private boolean | |
| private Handler | |
| private Handler | |
| private final Http2Headers | |
| private Handler | |
| private Http2HeadersAdaptor | |
| private boolean | |
| private Future | |
| private final boolean | |
| private HttpResponseStatus | |
| private String | |
| private final Http2ServerStream | |
| private Http2HeadersAdaptor | |
| private Http2Headers |
| Access | Constructor and Description |
|---|---|
| public | Http2ServerResponse(Http2ServerConnection conn, Http2ServerStream stream, boolean push, String contentEncoding)
|
| 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 boolean | |
| private boolean | |
| private void | |
| public void | close()
Implements io. Close the underlying TCP connection corresponding to the request. |
| public synchronized boolean | |
| public HttpServerResponse | |
| pack-priv CookieJar | |
| 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 |
| public Future | |
| public void | end(Handler<AsyncResult<Void>> handler)
Overrides default io. Implements io. Same as |
| private void | end(ByteBuf chunk, Handler<AsyncResult<Void>> handler)
Overrides default io. Same as |
| public boolean | |
| public HttpServerResponse | |
| public HttpServerResponse | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public int | |
| public String | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public MultiMap | |
| public HttpServerResponse | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| private 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 authority, 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 HttpServerResponse | putHeader(String
the header name name, String the header value. value)Implements io. Put an HTTP header |
| public HttpServerResponse | putHeader(CharSequence name, CharSequence value)
Implements io. Like |
| public HttpServerResponse | putHeader(String name, Iterable<String> values)
Implements io. Like |
| public HttpServerResponse | putHeader(CharSequence name, Iterable<CharSequence> values)
Implements io. Like |
| public HttpServerResponse | putTrailer(String
the trailer name name, String the trailer value value)Implements io. Put an HTTP trailer |
| public HttpServerResponse | putTrailer(CharSequence name, CharSequence value)
Implements io. Like |
| public HttpServerResponse | putTrailer(String name, Iterable<String> values)
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. |
| 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 offset, long length the number of bytes to send length, Handler<AsyncResult<Void>> handler that will be called on completion resultHandler)Implements io. Like |
| public HttpServerResponse | 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 | setStreamPriority(StreamPriority
the priority for this request's stream priority)Overrides default io. Sets the priority of the associated stream This is not implemented for HTTP/1.x. |
| public HttpServerResponse | setWriteQueueMaxSize(int
the max size of the write stream maxSize)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 Http2ServerResponse | write(ByteBuf
the data to write chunk)Implements io. Write some data to the stream. |
| pack-priv void | |
| 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 |