CLOUD: Add OneDriveUploadRequest
Doesn't support server's requested ranges yet. Commit also adds some PUT-related code in NetworkReadStream and CurlRequest.
This commit is contained in:
parent
eb63b50b7f
commit
b39f46788a
14 changed files with 354 additions and 33 deletions
|
@ -44,6 +44,7 @@ protected:
|
|||
Common::String _postFields;
|
||||
byte *_bytesBuffer;
|
||||
uint32 _bytesBufferSize;
|
||||
bool _uploading; //using PUT method
|
||||
|
||||
virtual NetworkReadStream *makeStream();
|
||||
|
||||
|
@ -66,6 +67,9 @@ public:
|
|||
/** Sets bytes buffer. */
|
||||
virtual void setBuffer(byte *buffer, uint32 size);
|
||||
|
||||
/** Remembers to use PUT method when it would create NetworkReadStream. */
|
||||
virtual void usePut();
|
||||
|
||||
/**
|
||||
* Starts this Request with ConnMan.
|
||||
* @return its NetworkReadStream in NetworkReadStreamResponse.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue