version 1.34, 2008/12/16 18:56:00
|
version 1.35, 2008/12/18 18:52:01
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
typedef Pair<String, String> HTTPHeader; |
typedef Pair<Buffer, Buffer> HTTPHeader; |
| |
/** This message is sent from a connection to its output queue when | /** This message is sent from a connection to its output queue when |
a complete HTTP message is received. | a complete HTTP message is received. |
|
|
| |
static void lookupHeaderPrefix( | static void lookupHeaderPrefix( |
Array<HTTPHeader>& headers, | Array<HTTPHeader>& headers, |
const String& fieldName, |
const char* fieldName, |
String& prefix); | String& prefix); |
| |
static Boolean lookupHeader( | static Boolean lookupHeader( |
Array<HTTPHeader>& headers, | Array<HTTPHeader>& headers, |
const String& fieldName, |
const char* fieldName, |
String& fieldValue, | String& fieldValue, |
Boolean allowNamespacePrefix = false); | Boolean allowNamespacePrefix = false); |
| |
|
static Boolean lookupHeader( |
|
Array<HTTPHeader>& headers, |
|
const char* fieldName, |
|
const char*& fieldValue, |
|
Boolean allowNamespacePrefix = false); |
|
|
static Boolean parseRequestLine( | static Boolean parseRequestLine( |
const String& startLine, | const String& startLine, |
String& methodName, | String& methodName, |
|
|
String& reasonPhrase); | String& reasonPhrase); |
| |
static Boolean parseContentTypeHeader( | static Boolean parseContentTypeHeader( |
const String& contentTypeHeader, |
const char* contentTypeHeader, |
String& type, | String& type, |
String& charset); | String& charset); |
| |
|
|
static char* findSeparator( | static char* findSeparator( |
const char* data, | const char* data, |
Uint32 size); | Uint32 size); |
|
|
|
private: |
|
|
|
static Boolean _lookupHeaderIndex( |
|
Array<HTTPHeader>& headers, |
|
const char* fieldName, |
|
Uint32& headerIndex, |
|
Boolean allowNamespacePrefix); |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |