sptk2 logo
SPTK Home Page

sptk::CHttpParams Class Reference
[Utility Classes]

HTTP params map. More...

#include <CHttpParams.h>

List of all members.

Public Member Functions

 CHttpParams ()
 Default constructor.
void encode (CBuffer &result)
void decode (const CBuffer &paramString, bool lowerCaseNames=false)


Detailed Description

HTTP params map.

Designed to hold HTTP parametrs in CHttpConnect and CCgiApplication. It is, basically, a string-to-string map with an addition of encode and decode functions for HTTP Mime.


Member Function Documentation

void sptk::CHttpParams::decode ( const CBuffer paramString,
bool  lowerCaseNames = false 
)

Decodes HTTP parameters that came from the server as a string into parameters map.

Parameters:
paramString CBuffer, parameters string from HTTP server
lowerCaseNames bool, true if you want to lower-case the parameter names

void sptk::CHttpParams::encode ( CBuffer result  ) 

Encodes HTTP parameters for sending to the server.

Parameters:
result CBuffer&, output - encoded parameters string (if any) as the buffer.


The documentation for this class was generated from the following file:

Mon Mar 5 11:56:05 2012: SPTK 3.5.7