|
#include <CHttpParams.h>
Public Member Functions | |
| CHttpParams () | |
| Default constructor. | |
| void | encode (CBuffer &result) |
| void | decode (const CBuffer ¶mString, bool lowerCaseNames=false) |
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.
| void sptk::CHttpParams::decode | ( | const CBuffer & | paramString, | |
| bool | lowerCaseNames = false | |||
| ) |
Decodes HTTP parameters that came from the server as a string into parameters map.
| 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.
| result | CBuffer&, output - encoded parameters string (if any) as the buffer. |