1#ifndef TEASE_NET_REQUEST_H
2#define TEASE_NET_REQUEST_H
12 TEASE_DISABLE_COPY_MOVE(
Request)
28 using List = std::vector<PtrShared>;
37 void configureDownload(
const Url &targetUrl);
39 void configureUpload(
const Url &dstUrl,
const BytesArray &inputData);
40 void configureUpload(
const Url &dstUrl,
BytesArray &&inputData);
44 const Url& getUrl()
const;
50 size_t ioRead(
char *buffer,
size_t nbBytes);
52 void ioSetSizeTotal(
size_t size);
53 void ioSetSizeCurrent(
size_t size);
58 size_t ioGetSizeTotal()
const;
59 size_t ioGetSizeCurrent()
const;
60 int ioGetNbTrials()
const;
61 bool ioIsAbort()
const;
65 std::unique_ptr<Impl> d_ptr;
Allow to store an array of bytes.
Definition bytesarray.h:15
Manage a ressource request informations.
Definition request.h:11
TypeTransfer
List of types of transfers.
Definition request.h:19
@ TRANSFER_DOWNLOAD
Definition request.h:22
std::vector< PtrShared > List
Definition request.h:28
std::shared_ptr< Request > PtrShared
Definition request.h:27
Use to manage URLs.
Definition url.h:13