HttpServerRequest

Constructors

this
this(string method, string uri, HttpVersion ver, HttpServerOptions options)
Undocumented in source.

Members

Aliases

xFormData
deprecated alias xFormData = formData
Undocumented in source.

Functions

bindForm
T bindForm()
Undocumented in source. Be warned that the author may not have intended to support it.
cookie
string cookie(string key, string defaultValue)

Retrieve a cookie from the request.

get
T get(string key, T v)

get a query

getCookies
Cookie[] getCookies()
Undocumented in source. Be warned that the author may not have intended to support it.
getMimeType
string getMimeType()
Undocumented in source. Be warned that the author may not have intended to support it.
getParameter
string getParameter(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getParameterMap
Map!(string, List!(string)) getParameterMap()
Undocumented in source. Be warned that the author may not have intended to support it.
getParameterValues
List!(string) getParameterValues(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getPart
Part getPart(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getParts
Part[] getParts()
Undocumented in source. Be warned that the author may not have intended to support it.
getStringBody
string getStringBody(string charset)
Undocumented in source. Be warned that the author may not have intended to support it.
getStringBody
string getStringBody()
Undocumented in source. Be warned that the author may not have intended to support it.
isMultipartForm
bool isMultipartForm()
Undocumented in source. Be warned that the author may not have intended to support it.
isXFormUrlencoded
bool isXFormUrlencoded()
Undocumented in source. Be warned that the author may not have intended to support it.
locale
string locale()

Retrieve users' own preferred language.

onBadMessage
HttpServerRequest onBadMessage(Action1!HttpServerRequest handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onContent
void onContent(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
onContentComplete
void onContentComplete()
Undocumented in source. Be warned that the author may not have intended to support it.
onContentComplete
HttpRequest onContentComplete(Action1!HttpServerRequest handler)
Undocumented in source. Be warned that the author may not have intended to support it.
onHeaderComplete
void onHeaderComplete()
Undocumented in source. Be warned that the author may not have intended to support it.
onMessageComplete
void onMessageComplete()
Undocumented in source. Be warned that the author may not have intended to support it.
onMessageComplete
HttpServerRequest onMessageComplete(Action1!HttpServerRequest handler)
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
string opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.
post
T post(string key, T v)

Retrieve a request payload item from the request.

posts
T[] posts(string key, T[] v)
Undocumented in source. Be warned that the author may not have intended to support it.
putQueryParameter
void putQueryParameter(string key, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
query
string query(string key, string defaults)

Retrieve a query string item from the request.

replace
void replace(string[string] input)

Replace the input for the current request.

Properties

decodedPath
string decodedPath [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
formData
string[][string] formData [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
host
string host [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
originalPath
string originalPath [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
string path [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
string path [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
queries
string[string] queries [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From HttpRequest

recycle
void recycle()
Undocumented in source. Be warned that the author may not have intended to support it.
isRequest
bool isRequest()
Undocumented in source. Be warned that the author may not have intended to support it.
isHttps
bool isHttps()

Checks whether the request is secure or not.

getMethod
string getMethod()

@return the HTTP method

setMethod
void setMethod(string method)

@param method the HTTP method to set

getURI
HttpURI getURI()

@return the HTTP URI

getURIString
string getURIString()

@return the HTTP URI in string form

setURI
void setURI(HttpURI uri)

@param uri the HTTP URI to set

headerExists
bool headerExists(HttpHeader header)
Undocumented in source. Be warned that the author may not have intended to support it.
headerExists
bool headerExists(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
isChunked
bool isChunked()
Undocumented in source. Be warned that the author may not have intended to support it.
getAttachment
deprecated Object getAttachment()
Undocumented in source. Be warned that the author may not have intended to support it.
setAttachment
deprecated void setAttachment(Object attachment)
Undocumented in source. Be warned that the author may not have intended to support it.
getAttribute
Object getAttribute(string key)

Returns the value of the user-defined attribute of this connection.

getAttribute
Object getAttribute(string key, Object defaultValue)

Returns the value of user defined attribute associated with the specified key. If there's no such attribute, the specified default value is associated with the specified key, and the default value is returned. This method is same with the following code except that the operation is performed atomically. <pre> if (containsAttribute(key)) { return getAttribute(key); } else { setAttribute(key, defaultValue); return defaultValue; } </pre>

setAttribute
Object setAttribute(string key, Object value)

Sets a user-defined attribute.

removeAttribute
Object removeAttribute(string key)

Removes a user-defined attribute with the specified key.

containsAttribute
bool containsAttribute(string key)

@param key The key of the attribute we are looking for in the connection @return <tt>true</tt> if this connection contains the attribute with the specified <tt>key</tt>.

getAttributeKeys
string[] getAttributeKeys()

@return the set of keys of all user-defined attributes.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
tracer
Tracer tracer;
Undocumented in source.

Meta