SetRawCgi(
boolis_raw);
64 boolIsRawCgi(
void)
const;
69 voidSetStatus(
unsigned int code,
const string& reason =
kEmptyStr);
72 voidSetHeaderValue (
const string& name,
const string&
value);
73 voidSetHeaderValue (
const string& name,
const structtm&
value);
74 voidSetHeaderValue (
const string& name,
const CTime&
value);
75 voidRemoveHeaderValue(
const string& name);
78 stringGetHeaderValue (
const string& name)
const;
79 boolHaveHeaderValue(
const string& name)
const;
82 voidSetContentType(
const string&
type);
85 stringGetContentType(
void)
const;
91 voidSetFilename(
const string& name,
size_t size= 0);
105 voidSetMultipartMode(EMultipartMode
mode= eMultipart_mixed);
106EMultipartMode GetMultipartMode(
void);
108 voidBeginPart (
const string& name,
const string&
type,
size_t size= 0);
109 voidEndPart (
void);
110 voidEndLastPart(
void);
112 voidBeginPart (
const string& name,
const string&
type,
CNcbiOstream& os,
136 intGetOutputFD(
void)
const;
142 voidFlush(
void)
const;
147 boolIsHeaderWritten()
const;
156 voidRequireWriteHeader(
boolrequire);
158 voidSetTrackingCookie(
const string& name,
const string&
value,
159 const string& domain,
const string& path,
167 voidSetThrowOnBadOutput(
boolthrow_on_bad_output);
176 voidSetExceptionAfterHEAD(
boolexpt_after_head);
179 boolAcceptRangesBytes(
void)
const;
182 boolHaveContentRange(
void)
const;
195 voidInitCORSHeaders(
const string&
origin,
196 const string& jquery_callback =
kEmptyStr);
206 voidFinalize(
void)
const;
215 boolGetChunkedTransferEnabled(
void)
const;
216 voidSetChunkedTransferEnabled(
bool value);
218 static size_tGetChunkSize(
void);
222 voidFinishChunkedTransfer(
void);
224 voidAbortChunkedTransfer(
void);
231 boolCanSendTrailer(
void)
const;
236 voidAddTrailer(
const string& name);
238 voidRemoveTrailer(
const string& name);
240 boolHaveTrailer(
const string& name)
const;
242 stringGetTrailerValue(
const string& name)
const;
245 voidSetTrailerValue(
const string& name,
const string&
value);
288 voidx_RestoreOutputExceptions(
void);
289 boolx_ValidateHeader(
const string& name,
const string&
value)
const;
CRetryContext â Retry context.
std::ofstream out("events_result.xml")
main entry point for tests
static const char * sm_HTTPStatusName
const CCgiRequest * m_Request
unique_ptr< bool > m_TrailerEnabled
void SetRequestMethod(CCgiRequest::ERequestMethod method)
Set HTTP request method.
static const char * sm_ContentRange
void SetMultipartMode(EMultipartMode mode=eMultipart_mixed)
string GetContentType(void) const
Get content type.
map< string, string, PNocase > TMap
static const char * sm_CacheControl
void SetHeaderValue(const string &name, const string &value)
unique_ptr< CCgiCookie > m_TrackingCookie
void x_SetSession(const CCgiSession &session)
static const char * sm_AcceptRanges
CCgiRequest::ERequestMethod m_RequestMethod
void SetLocation(const CUrl &url, const IUrlEncoder *encoder=0)
Set the "Location:" HTTP header.
NCBI_PARAM_DECL(bool, CGI, ExceptionAfterHEAD)
static const char * sm_ContentTypeMixed
static const char * sm_ContentTypeDefault
void SetRawCgi(bool is_raw)
bool m_RequireWriteHeader
static const char * sm_FilenamePrefix
static const char * sm_ContentTypeName
CNcbiOstream::iostate m_OutputExpt
CNcbiOstream & out(void) const
Get output stream. Throw exception if GetOutput() is NULL.
static const char * sm_ContentTypeRelated
static const char * sm_ContentDispoName
typedef NCBI_PARAM_TYPE(CGI, ExceptionAfterHEAD) TCGI_ExceptionAfterHEAD
EMultipartMode m_IsMultipart
void SetCgiRequest(const CCgiRequest &request)
void RequireWriteHeader(bool require)
Define if WriteHeader() must be called or can be skipped.
bool m_DisableTrackingCookie
NCBI_PARAM_DECL(bool, CGI, ThrowOnBadOutput)
static const char * sm_HTTPStatusDefault
const CCgiCookies & Cookies(void) const
static const char * sm_LocationName
CCgiResponse(const CCgiResponse &)
bool IsHeaderWritten() const
void SetContentType(const string &type)
Set content type (text/html by default if not provided)
string GetHeaderValue(const string &name) const
typedef NCBI_PARAM_TYPE(CGI, ThrowOnBadOutput) TCGI_ThrowOnBadOutput
CNcbiOstream & WriteHeader(void) const
Write HTTP response header to the output stream.
bool IsRawCgi(void) const
ERequestMethod
Standard request methods.
static const char * sm_AcceptRangesBytes
const CCgiSession * m_Session
static const char * sm_ContentTypeXMR
TCGI_ThrowOnBadOutput m_ThrowOnBadOutput
static const char * sm_BoundaryPrefix
int GetOutputFD(void) const
Get file descriptor of the output stream (-1 if not applicable)
void BeginPart(const string &name, const string &type, size_t size=0)
EMultipartMode GetMultipartMode(void)
TCGI_ExceptionAfterHEAD m_ExceptionAfterHEAD
string GetStringUID(TUID uid=0) const
Return string representation of UID.
CDiagContext & GetDiagContext(void)
Get diag context instance.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
string ComposeUrl(CUrlArgs::EAmpEncoding amp_enc, const IUrlEncoder *encoder=0) const
Compose the URL.
@ eAmp_Char
Use & to separate arguments.
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
Defines: CTimeFormat - storage class for time format.
static const GLdouble origin[]
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