public interface HttpServerRequest
Modifiers | Name | Description |
---|---|---|
interface |
HttpServerRequest.Body |
Serves to encapsulate all logic relating to the request body. |
Type Params | Return Type | Name and description |
---|---|---|
<T> |
public T |
get(java.lang.String key) Shortcut for HttpServerRequest#getState().get(String) |
<T> |
public T |
getAt(java.lang.String key) Facilitates the use of Groovy's subscript operator ([]). |
|
public HttpServerRequest.Body |
getBody()
|
|
public java.lang.String |
getContentType()
|
|
public java.util.Map<java.lang.String, java.lang.String> |
getCookies() RFC States that there can be multiple cookies with the same name, but seeing that this is a practice we try to discourage internally, this pattern will go a long way in enforcing that. |
|
public java.util.Set<io.vertx.ext.web.FileUpload> |
getFileUploads()
|
|
public io.vertx.core.MultiMap |
getHeaders() |
|
public java.lang.String |
getHost() |
|
public java.lang.String |
getMethod()
|
|
public java.lang.String |
getPath()
|
|
public java.lang.String |
getPathParam(java.lang.String name)
|
|
public java.util.Map<java.lang.String, java.lang.String> |
getPathParams()
|
|
public io.vertx.core.MultiMap |
getQueryParams()
|
|
public java.util.Map<java.lang.String, java.lang.Object> |
getState() |
|
public java.net.URI |
getUri() |
|
public void |
next() Pass the request on to the next matching route. |
|
public HttpServerRequest |
put(java.lang.String key, java.lang.Object value) Add an arbitrary item to the request state. |
|
public void |
putAt(java.lang.String key, java.lang.Object value) Facilitates the use of Groovy's subscript operator ([]). |
|
public HttpServerRequest |
remove(java.lang.String key) Remove an item from the request's state. |
|
public io.vertx.core.http.HttpServerRequest |
unwrap() If you find yourself using this method, document your use case and create a pull request. |
Shortcut for HttpServerRequest#getState().get(String)
key
- The state item.T
- The return type.Facilitates the use of Groovy's subscript operator ([]).
key
- The state item.T
- The return type.
RFC States that there can be multiple cookies with the same name, but seeing that this is a practice we try to discourage internally, this pattern will go a long way in enforcing that. Name your cookies uniquely! The Map will contain the cookie name and its value.
name
- The name of the parameter.
Pass the request on to the next matching route. Useful for filters.
Add an arbitrary item to the request state.
key
- The key.value
- The value.Facilitates the use of Groovy's subscript operator ([]).
key
- The key.value
- The value.Remove an item from the request's state.
key
- The item key.If you find yourself using this method, document your use case and create a pull request.