version 1.27, 2006/11/10 18:14:58
|
version 1.27.4.1, 2007/05/25 17:39:01
|
|
|
String& httpVersion, | String& httpVersion, |
Uint32& statusCode, | Uint32& statusCode, |
String& reasonPhrase); | String& reasonPhrase); |
|
|
|
/** |
|
Advances a given pointer to the first character that is not |
|
HTTP header whitespace (space or tabs). |
|
|
|
@param str Input string. |
|
*/ |
|
static void skipHeaderWhitespace(const char*& str); |
|
|
|
/** |
|
Looks for a token in the beginning of a given string. |
|
|
|
@param str input string to be searched |
|
@param token token to look for |
|
|
|
@return true if the token is found in the string after skipping |
|
the leading whitespaces if any. |
|
@return false if the token is not found. |
|
*/ |
|
static Boolean expectHeaderToken(const char*& str, const char *token); |
|
|
|
/** |
|
Returns a pointer to the first CRLF or a LF separator. |
|
|
|
@param data input string. |
|
@param size size of the input string. |
|
|
|
@return pointer to the first CRLF or LF separator if any, else |
|
returns NULL. |
|
*/ |
|
static char* findSeparator( |
|
const char* data, |
|
Uint32 size); |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |