Http_Utils.h
Go to the documentation of this file.
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a zlib-style license that can
* be found in the License.txt file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// HTTP utils
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//---------------------------------------------------------------------------
#ifndef ZenLib_Server_Http_UtilsH
#define ZenLib_Server_Http_UtilsH
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <string>
#include <ctime>
#include <map>
#include <vector>
//---------------------------------------------------------------------------
namespace ZenLib
{
namespace Format
{
namespace Http
{
//***************************************************************************
//
//***************************************************************************
//---------------------------------------------------------------------------
// Character manipulation
unsigned char Char2Hex (unsigned char Char);
wchar_t Char2Hex (wchar_t Char);
std::string Hex2Char (unsigned char Char);
#ifndef WSTRING_MISSING
std::wstring Hex2Char (wchar_t Char);
#endif //WSTRING_MISSING
//---------------------------------------------------------------------------
// URL manipulation
std::string URL_Encoded_Encode (const std::string& URL);
#ifndef WSTRING_MISSING
std::wstring URL_Encoded_Encode (const std::wstring& URL);
#endif //WSTRING_MISSING
std::string URL_Encoded_Decode (const std::string& URL);
#ifndef WSTRING_MISSING
std::wstring URL_Encoded_Decode (const std::wstring& URL);
#endif //WSTRING_MISSING
//---------------------------------------------------------------------------
// Cleanup
void TrimLeft (std::string& String, char ToTrim);
} //Namespace
} //Namespace
} //Namespace
#endif //ZENLIB_SERVER_HTTP_UTILS
ZenLib::Format::Http
Definition Http_Cookies.h:32
ZenLib::Format::Http::URL_Encoded_Encode
std::string URL_Encoded_Encode(const std::string &URL)
ZenLib::Format::Http::URL_Encoded_Decode
std::string URL_Encoded_Decode(const std::string &URL)
ZenLib::Format::Http::Hex2Char
std::string Hex2Char(unsigned char Char)
ZenLib::Format::Http::Char2Hex
unsigned char Char2Hex(unsigned char Char)
ZenLib::Format::Http::TrimLeft
void TrimLeft(std::string &String, char ToTrim)
ZenLib::Format
Definition Html_Handler.h:29
ZenLib
Definition BitStream.h:24
ZenLib::Char
char Char
Definition Conf.h:225