|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vertx.groovy.core.http.HttpServerRequest
class HttpServerRequest
Represents a server-side HTTP request.
An instance of this class is created for each request that is handled by the server and is passed to the user via the handler instance registered with the HttpServer using the method HttpServer#requestHandler(Closure)#requestHandler(Closure).
Each instance of this class is associated with a corresponding HttpServerResponse instance via the response field.
It implements ReadStream so it can be used with Pump to pump data with flow control.
Instances of this class are not thread-safe
Constructor Summary | |
protected HttpServerRequest(JHttpServerRequest jRequest)
|
Method Summary | |
---|---|
void
|
bodyHandler(groovy.lang.Closure bodyHandler)
Convenience method for receiving the entire request body in one piece. |
void
|
dataHandler(groovy.lang.Closure dataHandler)
{@inheritDoc} |
void
|
endHandler(groovy.lang.Closure handler)
{@inheritDoc} |
void
|
exceptionHandler(groovy.lang.Closure handler)
{@inheritDoc} |
java.util.Map
|
getHeaders()
A map of all headers in the request, If the request contains multiple headers with the same key, the values will be concatenated together into a single header with the same key value, with each value separated by a comma, as specified here. |
java.lang.String
|
getMethod()
|
java.util.Map
|
getParams()
@return A map of all query parameters in the request |
java.lang.String
|
getPath()
|
java.lang.String
|
getQuery()
|
HttpServerResponse
|
getResponse()
|
java.lang.String
|
getUri()
|
void
|
pause()
{@inheritDoc} |
void
|
resume()
{@inheritDoc} |
HttpServerRequest
|
toJavaRequest()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
protected HttpServerRequest(JHttpServerRequest jRequest)
Method Detail |
---|
void bodyHandler(groovy.lang.Closure bodyHandler)
bodyHandler
- This handler will be called after all the body has been received
void dataHandler(groovy.lang.Closure dataHandler)
void endHandler(groovy.lang.Closure handler)
void exceptionHandler(groovy.lang.Closure handler)
java.util.Map getHeaders()
java.lang.String getMethod()
java.util.Map getParams()
java.lang.String getPath()
java.lang.String getQuery()
HttpServerResponse getResponse()
java.lang.String getUri()
void pause()
void resume()
HttpServerRequest toJavaRequest()
Groovy Documentation