The internal state is protected by using the connection as a lock. If always used on the same event loop, then we benefit from biased locking which makes the overhead of synchronized near zero.
It's important we don't have different locks for connection and request/response to avoid deadlock conditions
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private MultiMap | |
| private HostAndPort | |
| private long | |
| private final Http1xServerConnection | |
| pack-priv final ContextInternal | |
| private HttpPostRequestDecoder | |
| private boolean | |
| private HttpEventHandler | |
| private boolean | |
| private MultiMap | |
| private HttpMethod | |
| pack-priv Object | |
| pack-priv Http1xServerRequest | |
| private static final HostAndPort | |
| private MultiMap | |
| private Charset | |
| private String | |
| private InboundBuffer | |
| private String | |
| private HttpRequest | |
| private Http1xServerResponse | |
| private boolean | |
| pack-priv Object | |
| private Handler | |
| private String | |
| private HttpVersion |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| private MultiMap | |
| public HostAndPort | |
| public synchronized Future | body()
Implements io. Convenience method for receiving the entire request body in one piece. |
| public long | |
| private void | |
| private void | |
| public HttpConnection | |
| public Context | |
| public Set | cookies()
Implements io. Returns a modifiable set of parsed cookies from the |
| public Set | cookies(String
the name to be matches name)Implements io. Returns a read only set of parsed cookies that match the given name, or an empty set. |
| public HttpServerRequest | customFrameHandler(Handler<HttpFrame> handler)
Implements io. Set a custom frame handler. |
| public DecoderResult | |
| public synchronized Future | end()
Implements io. Returns a future signaling when the request has been fully received successfully or failed. |
| private void | |
| public HttpServerRequest | |
| private HttpEventHandler | |
| pack-priv void | |
| private HttpEventHandler | |
| public HttpServerRequest | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public HttpServerRequest | fetch(long amount)
Implements io. Fetch the specified |
| public MultiMap | formAttributes()
Implements io. Returns a map of all form attributes in the request. |
| public Cookie | getCookie(String
the cookie name name)Implements io. Get the cookie with the specified name. |
| public Cookie | getCookie(String
the cookie name name, String the cookie domain domain, String the cookie path path)Implements io. Get the cookie with the specified |
| public String | getFormAttribute(String
the attribute name attributeName)Implements io. Return the first form attribute value with the specified name |
| public String | |
| pack-priv void | |
| pack-priv void | handleContent(Buffer buffer)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| pack-priv void | |
| pack-priv void | |
| public HttpServerRequest | |
| public MultiMap | |
| public @Nullable String | |
| public int | |
| public boolean | |
| public synchronized boolean | |
| public boolean | isValidAuthority()
Overrides io. This method act as |
| public HttpMethod | |
| public Object | |
| pack-priv HttpRequest | |
| pack-priv Http1xServerRequest | |
| private void | |
| private void | |
| public MultiMap | params(boolean
whether semicolon is treated as a normal character or a query parameter separator semicolonIsNormalChar)Implements io.
|
| public String | |
| public HttpServerRequest | pause()
Implements io. Pause the |
| public X509Certificate[] | peerCertificateChain()
Implements io.
References Deprecated
X509Certificate is deprecated or references (maybe indirectly) at least one deprecated element.
Note Java SE 5+ recommends to use javax.net.ssl.SSLSession#getPeerCertificates() instead of of javax.net.ssl.SSLSession#getPeerCertificateChain() which this method is based on. |
| private Handler | |
| private Handler | |
| public String | |
| public SocketAddress | remoteAddress()
Overrides default io. Implements io.
|
| private void | |
| private void | |
| private void | |
| public Http1xServerResponse | |
| public HttpServerRequest | resume()
Implements io. Resume reading, and sets the buffer in |
| public HttpServerRequest | routed(String
The route this request has been routed to. route)Overrides default io. Marks this request as being routed to the given route. |
| public String | |
| public HttpServerRequest | setExpectMultipart(boolean
true - if you are expecting a multi-part body expect)Implements io. Call this with true if you are expecting a multi-part body to be submitted in the request. |
| public HttpServerRequest | setParamsCharset(String
the charset to use for decoding query params charset)Implements io. Override the charset to use for decoding the query parameter map, when none is set, |
| pack-priv void | |
| public HttpServerRequest | streamPriorityHandler(Handler<StreamPriority>
the handler to be called when stream priority changes handler)Implements io. Set an handler for stream priority changes This is not implemented for HTTP/1.x. |
| public Future | toNetSocket()
Implements io. Like |
| public Future | toWebSocket()
Implements io. Like |
| pack-priv Object | |
| public HttpServerRequest | |
| public String | |
| public HttpVersion | |
| pack-priv Future | |
| private void | webSocket(PromiseInternal<ServerWebSocket> promise)
Handle the request when a WebSocket upgrade header is present. |