22 #ifndef BACKENDS_NETWORKING_CURL_CURLREQUEST_H 23 #define BACKENDS_NETWORKING_CURL_CURLREQUEST_H 25 #include "backends/networking/curl/request.h" 26 #include "common/path.h" 27 #include "common/str.h" 28 #include "common/array.h" 29 #include "common/hashmap.h" 30 #include "common/hash-str.h" 36 class NetworkReadStream;
38 typedef Response<NetworkReadStream *> NetworkReadStreamResponse;
45 curl_slist *_headersList;
50 uint32 _bytesBufferSize;
54 long _keepAliveIdle, _keepAliveInterval;
82 virtual void setBuffer(byte *buffer, uint32 size);
92 virtual void connectionClose();
98 virtual NetworkReadStreamResponse
execute();
104 void wait(
int spinlockDelay = 5);
virtual void addPostField(const Common::String &field)
virtual NetworkReadStreamResponse execute()
virtual void connectionKeepAlive(long idle=120, long interval=60)
Definition: scummvmcloud.h:31
virtual void addHeader(const Common::String &header)
const NetworkReadStream * getNetworkReadStream() const
virtual void setBuffer(byte *buffer, uint32 size)
void wait(int spinlockDelay=5)
virtual void setHeaders(const Common::Array< Common::String > &headers)
virtual void addFormField(const Common::String &name, const Common::String &value)
Common::String date() const override
Definition: networkreadstream.h:37
virtual void addFormFile(const Common::String &name, const Common::Path &filename)
Definition: curlrequest.h:41
Definition: request.h:119