/usr/include/ZenLib/Format/Http/Http_Utils.h is in libzen-dev 0.4.32-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /* 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
|