2 #ifndef _YI_HTTP_REQUEST_H_ 3 #define _YI_HTTP_REQUEST_H_ 19 #undef DELETE // Microsoft definition 24 class CYIHTTPRequestPriv;
126 const std::vector<CYIString> &
GetHeaders()
const;
138 uint32_t
GetID()
const;
145 void SetID(uint32_t uRequestID);
283 CYIHTTPRequestPriv *m_pPriv;
292 #endif // _YI_HTTP_REQUEST_H_ bool IsUsingCookies() const
CYISignal< const std::shared_ptr< CYIHTTPRequest > &, const std::shared_ptr< CYIHTTPResponse > &, const HTTP_STATUS_CODE > NotifyComplete
Emitted when a success or failure response is received, or no response is available. Parameters included are request, response and status code.
Definition: YiHTTPRequest.h:280
void SetContextID(uint32_t uContextID)
void SetIsConnectivityProbe(bool bIsConnectivityProbe)
uint32_t GetConnectionTimeoutMs() const
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:114
uint64_t GetUniqueID() const
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
const std::vector< CYIString > & GetHeaders() const
void AddHeader(const CYIString &header)
Indicates that the server can compress the response data, but is not required to do so...
Definition: YiHTTPRequest.h:57
METHOD
Supported HTTP request methods.
Definition: YiHTTPRequest.h:41
This is the default value, indicating that the server should not compress the response data...
Definition: YiHTTPRequest.h:56
Contains information required to configure and perform a HTTP request.
Definition: YiHTTPRequest.h:34
bool operator!=(const CYIHTTPRequest &other) const
The base class for an object accessible from script source code.
Definition: YiScriptableObject.h:28
void SetCompressionType(COMPRESSION_TYPE eCompressionType)
bool operator==(const CYIHTTPRequest &other) const
const std::vector< char > & GetPostData() const
void SetUseCookies(bool bUseCookies)
This class contains various data used when authenticating with a server.
Definition: YiServer.h:16
void SetNetworkTimeoutMs(uint32_t uNetworkTimeoutMs)
Stores the post data as a resource identified by the request URL.
Definition: YiHTTPRequest.h:44
CYIHTTPRequest::COMPRESSION_TYPE GetCompressionType() const
Retrieve the information identified by the request URL.
Definition: YiHTTPRequest.h:43
Deletes the reseource identified by the request URL.
Definition: YiHTTPRequest.h:46
void SetMethod(CYIHTTPRequest::METHOD eMethod)
const CYIServer GetServer() const
Submits the post data to be processed to a specified resource identified by the request URL...
Definition: YiHTTPRequest.h:45
A class used to encapsulate an URL.
Definition: YiUrl.h:24
virtual ~CYIHTTPRequest()
CYISignal< const std::shared_ptr< CYIHTTPRequest > &, const std::shared_ptr< CYIHTTPResponse > &, bool > NotifyResponse
Emitted when a response has been received for this request. The bool parameter will be true if the re...
Definition: YiHTTPRequest.h:277
HTTP_STATUS_CODE
Definition: YiHTTPService.h:20
COMPRESSION_TYPE
Provides a hint to the server if compression can be used on the response data.
Definition: YiHTTPRequest.h:54
bool IsConnectivityProbe() const
void SetServer(const CYIServer &server)
const CYIUrl & GetURL() const
void SetPostData(const CYIString &postData)
uint32_t GetNetworkTimeoutMs() const
void SetID(uint32_t uRequestID)
Signals and slots are a thread-safe and flexible communication framework that will allow various obje...
Definition: YiSignal.h:164
void SetConnectionTimeoutMs(uint32_t uConnectionTimeoutMs)
void SetOpaqueCleanupObject(OpaqueCleanup *pCleanup)
void SetURL(const CYIUrl &url)
CYISignal< const std::shared_ptr< CYIHTTPRequest > &, const HTTP_STATUS_CODE, const CYIString & > NotifyError
Emitted when an error occured processing this request, and no response is available. Parameters included are the status code (which may be from the server or locally generated if an error occured during processing) and an error string.
Definition: YiHTTPRequest.h:278
uint32_t GetContextID() const