Inheritance diagram for HttpParams:
Public Types | |
typedef HttpTokens parse | parse |
Public Member Functions | |
this () | |
this (HttpParams source) | |
HttpParams | clone () |
void | parse (IBuffer input) |
Static Public Member Functions | |
this () | |
Private Member Functions | |
this (char seperator, bool inclusive=false) | |
this (HttpTokens source) | |
void | parse (char[] content) |
void | reset () |
bool | isParsed () |
void | setParsed (bool parsed) |
char[] | get (char[] name) |
int | getInt (char[] name) |
long | getDate (char[] name) |
int | opApply (int(*dg)(inout HttpToken)) |
void | write (IWriter writer) |
private bool | split (Token t, inout HttpToken element) |
FilteredTokens | createFilter (char[] match) |
void | setOutputBuffer (IBuffer output) |
IBuffer | getOutputBuffer () |
char[] | toOutputString () |
void | add (char[] name, void(*dg)(IBuffer)) |
void | add (char[] name, char[] value) |
void | addInt (char[] name, int value) |
void | addDate (char[] name, long value) |
Private Attributes | |
TokenStack | stack |
Static Private Attributes | |
BoundToken | amp |
Note that these input params may have been encoded by the user- agent. Unfortunately there has been little consensus on what that encoding should be (especially regarding GET query-params). With luck, that will change to a consistent usage of UTF-8 within the near future.
Definition at line 61 of file HttpParams.d.
|
Definition at line 66 of file HttpParams.d. Referenced by HttpRequest::getInputParameters(). |
|
Setup a token for extracting each query construct Reimplemented from HttpTokens. Definition at line 74 of file HttpParams.d. References amp. |
|
Construct parameters by telling the TokenStack that name/value pairs are seperated by a '=' character. Reimplemented from HttpTokens. Definition at line 86 of file HttpParams.d. |
|
Clone a source set of HttpParams Definition at line 97 of file HttpParams.d. |
|
Clone this set of HttpParams Reimplemented in HttpMutableParams. Definition at line 108 of file HttpParams.d. References HttpParams. |
|
Read all query parameters. Everything is mapped rather than being allocated & copied Reimplemented from HttpTokens. Definition at line 120 of file HttpParams.d. References amp, Token::getLength(), BoundToken::next(), TokenStack::push(), and HttpTokens::setParsed(). |
|
Construct a set of tokens based upon the given delimeter, and an indication of whether said delimeter should be considered part of the left side (effectively the name). The latter is useful with headers, since the seperating ':' character should really be considered part of the name for purposes of subsequent token matching. Definition at line 119 of file HttpTokens.d. References HttpTokens::inclusive, HttpTokens::seperator, HttpTokens::sepString, and TokenStack. |
|
Clone a source set of HttpTokens Definition at line 139 of file HttpTokens.d. References TokenStack::clone(), HttpTokens::inclusive, HttpTokens::seperator, and HttpTokens::sepString. |
|
Parse an input string. Definition at line 165 of file HttpTokens.d. References HttpTokens::parse(), and IBuffer::setValidContent(). |
|
Reset this set of tokens. Definition at line 177 of file HttpTokens.d. References IBuffer::clear(), and TokenStack::reset(). Referenced by HttpRequest::reset(), and HttpClient::reset(). |
|
Have tokens been parsed yet? Definition at line 193 of file HttpTokens.d. Referenced by HttpRequest::getInputParameters(). |
|
Indicate whether tokens have been parsed or not. Definition at line 204 of file HttpTokens.d. Referenced by parse(), and HttpHeaders::parse(). |
|
Return the value of the provided header, or null if the header does not exist Definition at line 216 of file HttpTokens.d. References TokenStack::findToken(), HttpTokens::split(), and HttpToken::value. Referenced by HttpTokens::getDate(), and HttpTokens::getInt(). |
|
Return the integer value of the provided header, or -1 if the header does not exist Definition at line 236 of file HttpTokens.d. References HttpTokens::get(). |
|
Return the date value of the provided header, or -1 if the header does not exist Definition at line 255 of file HttpTokens.d. References date, and HttpTokens::get(). |
|
Iterate over the set of tokens Definition at line 272 of file HttpTokens.d. References HttpTokens::split(). |
|
Output the token list to the provided writer Reimplemented from IWritable. Definition at line 293 of file HttpTokens.d. References IWriter::cr(), and IWriter::put(). |
|
split basic token into an HttpToken Definition at line 309 of file HttpTokens.d. References HttpTokens::emptyString, HttpTokens::inclusive, HttpTokens::seperator, Text, and Token::toString(). Referenced by HttpTokens::get(), HttpTokens::FilteredTokens::opApply(), and HttpTokens::opApply(). |
|
Create a filter for iterating over the tokens matching a particular name. Definition at line 340 of file HttpTokens.d. |
|
Set the output buffer for adding tokens to. This is used by the various MutableXXXX classes. Definition at line 409 of file HttpTokens.d. |
|
Return the buffer used for output. Reimplemented in HttpMutableHeaders. Definition at line 420 of file HttpTokens.d. |
|
Return a char[] representing the output. An empty array is returned if output was not configured. Definition at line 432 of file HttpTokens.d. References IBuffer::toString(). |
|
Add a token with the given name. The content is provided via the specified delegate. We stuff this name & content into the output buffer, and map a new Token onto the appropriate buffer slice. Definition at line 450 of file HttpTokens.d. References IBuffer::append(), IBuffer::getLimit(), HttpTokens::inclusive, TokenStack::push(), HttpTokens::sepString, and IBuffer::toString(). Referenced by HttpTokens::add(), HttpTokens::addDate(), and HttpTokens::addInt(). |
|
Add a simple name/value pair to the output Reimplemented in HttpMutableParams. Definition at line 476 of file HttpTokens.d. References HttpTokens::add(), and IBuffer::append(). |
|
Add a name/integer pair to the output Reimplemented in HttpMutableParams. Definition at line 492 of file HttpTokens.d. References HttpTokens::add(). |
|
Add a name/date(long) pair to the output Reimplemented in HttpMutableParams. Definition at line 506 of file HttpTokens.d. References HttpTokens::add(). |
|
Definition at line 63 of file HttpParams.d. |
|
Definition at line 86 of file HttpTokens.d. Referenced by HttpTokens::FilteredTokens::opApply(). |