Audacity 3.2.0
|
Public Member Functions | |
StubResponse (const Request &request) | |
bool | isFinished () const noexcept override |
unsigned | getHTTPCode () const noexcept override |
NetworkError | getError () const noexcept override |
std::string | getErrorString () const override |
bool | headersReceived () const noexcept override |
bool | hasHeader (const std::string &headerName) const noexcept override |
std::string | getHeader (const std::string &headerName) const override |
const HeadersList & | getHeaders () const noexcept override |
const CookiesList & | getCookies () const noexcept override |
const Request & | getRequest () const noexcept override |
std::string | getURL () const override |
void | abort () noexcept override |
void | setOnDataReceivedCallback (RequestCallback) override |
void | setRequestFinishedCallback (RequestCallback callback) override |
void | setDownloadProgressCallback (ProgressCallback) override |
Set the download progress callback. More... | |
void | setUploadProgressCallback (ProgressCallback) override |
Set the upload progress callback. More... | |
uint64_t | getBytesAvailable () const noexcept override |
uint64_t | readData (void *, uint64_t) override |
Public Member Functions inherited from audacity::network_manager::IResponse | |
virtual | ~IResponse ()=default |
virtual bool | isFinished () const noexcept=0 |
virtual unsigned | getHTTPCode () const noexcept=0 |
virtual NetworkError | getError () const noexcept=0 |
virtual std::string | getErrorString () const =0 |
virtual bool | headersReceived () const noexcept=0 |
virtual bool | hasHeader (const std::string &headerName) const noexcept=0 |
virtual std::string | getHeader (const std::string &headerName) const =0 |
virtual const HeadersList & | getHeaders () const noexcept=0 |
virtual const CookiesList & | getCookies () const noexcept=0 |
virtual const Request & | getRequest () const noexcept=0 |
virtual std::string | getURL () const =0 |
virtual void | abort () noexcept=0 |
virtual void | setOnDataReceivedCallback (RequestCallback callback)=0 |
virtual void | setRequestFinishedCallback (RequestCallback callback)=0 |
virtual void | setDownloadProgressCallback (ProgressCallback callback)=0 |
Set the download progress callback. More... | |
virtual void | setUploadProgressCallback (ProgressCallback callback)=0 |
Set the upload progress callback. More... | |
virtual uint64_t | getBytesAvailable () const noexcept=0 |
virtual uint64_t | readData (void *buffer, uint64_t maxBytesCount)=0 |
template<typename RetVal = std::vector<uint8_t>> | |
RetVal | readAll () |
void | Cancel () override |
Public Member Functions inherited from audacity::concurrency::ICancellable | |
virtual | ~ICancellable ()=default |
virtual void | Cancel ()=0 |
Private Attributes | |
Request | mRequest |
Additional Inherited Members | |
Public Types inherited from audacity::network_manager::IResponse | |
using | RequestCallback = std::function< void(IResponse *)> |
using | ProgressCallback = std::function< void(int64_t current, int64_t expected)> |
Definition at line 24 of file CurlResponseFactory.cpp.
|
inlineexplicit |
Definition at line 27 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 89 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 111 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 73 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 42 of file CurlResponseFactory.cpp.
References audacity::network_manager::OperationCancelled.
|
inlineoverridevirtual |
Implements audacity::network_manager::IResponse.
Definition at line 47 of file CurlResponseFactory.cpp.
|
inlineoverridevirtual |
Implements audacity::network_manager::IResponse.
Definition at line 62 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 67 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 37 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 79 of file CurlResponseFactory.cpp.
|
inlineoverridevirtual |
Implements audacity::network_manager::IResponse.
Definition at line 84 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 57 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 52 of file CurlResponseFactory.cpp.
|
inlineoverridevirtualnoexcept |
Implements audacity::network_manager::IResponse.
Definition at line 32 of file CurlResponseFactory.cpp.
|
inlineoverridevirtual |
Implements audacity::network_manager::IResponse.
Definition at line 116 of file CurlResponseFactory.cpp.
|
inlineoverridevirtual |
Set the download progress callback.
Implements audacity::network_manager::IResponse.
Definition at line 103 of file CurlResponseFactory.cpp.
|
inlineoverridevirtual |
Implements audacity::network_manager::IResponse.
Definition at line 93 of file CurlResponseFactory.cpp.
|
inlineoverridevirtual |
Implements audacity::network_manager::IResponse.
Definition at line 97 of file CurlResponseFactory.cpp.
|
inlineoverridevirtual |
Set the upload progress callback.
Implements audacity::network_manager::IResponse.
Definition at line 107 of file CurlResponseFactory.cpp.
|
private |
Definition at line 122 of file CurlResponseFactory.cpp.