(list<string>, line, lines) {
79 size_tdelim = line->find(
':');
80 if(delim ==
NPOS|| delim < 1) {
85name = line->substr(0, delim);
86 value= line->substr(delim + 1);
106 stringcontent =
value;
HTTP-specific retry context implementation.
CRetryContext â Retry context.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
CObject & operator=(const CObject &src) THROWS_NONE
Assignment operator.
static const char * kContent_Value
static const char * kHeader_Stop
bool IsSetStop(void) const
Check if STOP flag is set.
bool IsSetUrl(void) const
Check if retry URL is set.
const CTimeSpan & GetDelay(void) const
Get retry delay.
void SetNeedReconnect(void)
Set need-reconnect flag.
CHttpRetryContext & operator=(const CRetryContext &ctx)
static const char * kHeader_Args
void SetStop(const string &reason)
Set STOP flag, clear all other options.
void ResetContent(void)
Reset content.
bool IsSetContentOverride(void) const
Check if content source is set.
void ParseHeader(const char *http_header)
static const char * kHeader_Content
const string & GetUrl(void) const
Get retry URL.
const string & GetContent(void) const
Get retry content.
bool IsSetDelay(void) const
Check if retry delay is set.
void SetUrl(const string &url)
Set retry URL.
static const char * kContent_FromResponse
void SetDelay(CTimeSpan delay)
Set retry delay.
const string & GetArgs(void) const
Get retry args, URL-decoded.
const string & GetStopReason(void) const
Get STOP reason (or empty string).
bool IsSetContent(void) const
Check if retry content is set and content-override flag assumes any content (eFromResponse or eData).
bool IsSetArgs(void) const
Check if retry args are set.
EContentOverride GetContentOverride(void) const
Get content source.
void ResetNeedRetry(void)
static const char * kHeader_Url
void SetContent(const string &content)
Set retry content.
void SetContentOverride(EContentOverride content)
Set content source.
static const char * kHeader_Delay
void SetArgs(const string &args)
Set retry args.
virtual void GetValues(TValues &values) const
Fills HTTP header names and values.
static const char * kContent_None
@ eFromResponse
On retry send content from the response body.
@ eData
On retry send content from the response header.
@ eNoContent
Do not send any content on retry.
@ eNot_set
No content provided, send the original request data.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
static double StringToDouble(const CTempStringEx str, TStringToNumFlags flags=0)
Convert string to double.
static string URLDecode(const CTempString str, EUrlDecode flag=eUrlDec_All)
URL-decode string.
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
static string URLEncode(const CTempString str, EUrlEncode flag=eUrlEnc_SkipMarkChars)
URL-encode string.
@ fSplit_MergeDelimiters
Merge adjacent delimiters.
@ eTrunc_Both
Truncate whitespace at both begin and end of string.
@ eNocase
Case insensitive compare.
const GenericPointer< typename T::ValueType > T2 value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4