NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/ncbienv.hpp>
#include <corelib/ncbitime.hpp>
#include <corelib/ncbi_param.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbi_safe_static.hpp>
#include <corelib/request_ctx.hpp>
#include <corelib/ncbi_strings.h>
#include <cgi/cgi_exception.hpp>
#include <cgi/cgi_serial.hpp>
#include <cgi/cgi_session.hpp>
#include <cgi/error_codes.hpp>
#include <cgi/impl/cgi_entry_reader.hpp>
#include <util/checksum.hpp>
#include <util/ncbi_url.hpp>
#include "cgi_impl.hpp"
#include <algorithm>
#include <stdio.h>
#include <time.h>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | CTrackingEnvHolder |
class | CStringEntryCollector |
Macros | |
#define | STDIN_FILENO 0 |
#define | NCBI_USE_ERRCODE_X Cgi_API |
Variables | |
static const tm | kZeroTime = { 0 } |
static const char * | kTrackingVars [] |
static const char * | s_PropName [eCgi_NProperties+1] |
#define NCBI_USE_ERRCODE_X Cgi_API |
Definition at line 65 of file ncbicgi.cpp.
#define STDIN_FILENO 0 |
Definition at line 61 of file ncbicgi.cpp.
EEncodingForm GetCharsetEncodingForm | ( | const string & | charset, |
CCgiEntry::EOnCharsetError | on_error | ||
) |
Definition at line 1893 of file ncbicgi.cpp.
References NStr::CompareNocase(), CCgiEntry::eCharsetError_Throw, eEncodingForm_ISO8859_1, eEncodingForm_Unknown, eEncodingForm_Utf16Foreign, eEncodingForm_Utf16Native, eEncodingForm_Utf8, eEncodingForm_Windows_1252, eUnknown, NCBI_THROW, s_Is_ISO_8859_1(), s_Is_UTF_8(), and s_Is_Windows_1252().
Referenced by CCgiEntry::GetValueAsUTF8().
NCBI_PARAM_DEF_EX | ( | string | , |
CGI | , | ||
LOG_EXCLUDE_ARGS | , | ||
"" | , | ||
eParam_NoThread | , | ||
CGI_LOG_EXCLUDE_ARGS | |||
) |
NCBI_PARAM_DEF_EX | ( | string | , |
CGI | , | ||
LOG_LIMIT_ARGS | , | ||
"*:1000000" | , | ||
eParam_NoThread | , | ||
CGI_LOG_LIMIT_ARGS | |||
) |
NCBI_PARAM_ENUM_ARRAY | ( | CCgiCookie::ECookieEncoding | , |
CGI | , | ||
Cookie_Encoding | |||
) |
Definition at line 94 of file ncbicgi.cpp.
References CCgiCookie::eCookieEnc_Quote, and CCgiCookie::eCookieEnc_Url.
NCBI_PARAM_ENUM_ARRAY | ( | CCgiCookies::EOnBadCookie | , |
CGI | , | ||
On_Bad_Cookie | |||
) |
Definition at line 1081 of file ncbicgi.cpp.
References CCgiCookies::eOnBadCookie_Skip, CCgiCookies::eOnBadCookie_SkipAndError, CCgiCookies::eOnBadCookie_Store, CCgiCookies::eOnBadCookie_StoreAndError, and CCgiCookies::eOnBadCookie_ThrowException.
Definition at line 78 of file ncbicgi.cpp.
References eDiag_Critical, eDiag_Error, eDiag_Fatal, eDiag_Info, eDiag_Trace, and eDiag_Warning.
NCBI_PARAM_ENUM_DECL | ( | CCgiCookie::ECookieEncoding | , |
CGI | , | ||
Cookie_Encoding | |||
) |
NCBI_PARAM_ENUM_DEF_EX | ( | CCgiCookie::ECookieEncoding | , |
CGI | , | ||
Cookie_Encoding | , | ||
CCgiCookie::eCookieEnc_Url | , | ||
eParam_NoThread | , | ||
CGI_COOKIE_ENCODING | |||
) |
NCBI_PARAM_ENUM_DEF_EX | ( | CCgiCookies::EOnBadCookie | , |
CGI | , | ||
On_Bad_Cookie | , | ||
CCgiCookies::eOnBadCookie_Store | , | ||
eParam_NoThread | , | ||
CGI_ON_BAD_COOKIE | |||
) |
NCBI_PARAM_ENUM_DEF_EX | ( | EDiagSev | , |
CGI | , | ||
Cookie_Error_Severity | , | ||
eDiag_Error | , | ||
eParam_NoThread | , | ||
CGI_COOKIE_ERROR_SEVERITY | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
cookie_auth_token | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
Cookie_Encoding | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
Cookie_Error_Severity | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
Cookie_Name_Banned_Symbols | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
LOG_EXCLUDE_ARGS | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
LOG_LIMIT_ARGS | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
On_Bad_Cookie | |||
) |
|
static |
Definition at line 961 of file ncbicgi.cpp.
References entries, and rapidjson::value.
Referenced by CCgiRequest::x_Init().
|
static |
Definition at line 332 of file ncbicgi.cpp.
Referenced by CCgiCookies::Find(), and CCgiCookie::operator<().
const char* s_GetCookieNameBannedSymbols | ( | void | ) |
Definition at line 492 of file ncbicgi.cpp.
References CSafeStatic< T, Callbacks >::Get().
Referenced by CCgiCookies::Add().
Definition at line 1856 of file ncbicgi.cpp.
References NStr::CompareNocase(), and i.
Referenced by GetCharsetEncodingForm().
Definition at line 1886 of file ncbicgi.cpp.
References NStr::CompareNocase().
Referenced by GetCharsetEncodingForm().
Definition at line 1878 of file ncbicgi.cpp.
References NStr::CompareNocase().
Referenced by GetCharsetEncodingForm().
Definition at line 140 of file ncbicgi.cpp.
References kZeroTime, and true.
Referenced by CCgiCookie::GetExpDate().
|
static |
Definition at line 1177 of file ncbicgi.cpp.
References CTempString::empty(), NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, i, NStr::IsIPAddress(), and NStr::Split().
Referenced by CCgiRequest::x_SetClientIpProperty().
|
static |
Definition at line 841 of file ncbicgi.cpp.
Referenced by CTrackingEnvHolder::CTrackingEnvHolder().
|
static |
Definition at line 138 of file ncbicgi.cpp.
Referenced by CCgiCookie::CCgiCookie(), CCgiCookie::Reset(), s_IsZeroTime(), and s_ZeroTime().
|
static |
Definition at line 916 of file ncbicgi.cpp.
Referenced by CCgiRequest::GetPropertyName().