Shaka Packager SDK
|
#include <http_file.h>
Public Member Functions | |
HttpFile (HttpMethod method, const std::string &url) | |
HttpFile (HttpMethod method, const std::string &url, const std::string &upload_content_type, const std::vector< std::string > &headers, int32_t timeout_in_seconds) | |
HttpFile (const HttpFile &)=delete | |
HttpFile & | operator= (const HttpFile &)=delete |
Status | CloseWithStatus () |
File implementation overrides. | |
bool | Close () override |
int64_t | Read (void *buffer, uint64_t length) override |
int64_t | Write (const void *buffer, uint64_t length) override |
void | CloseForWriting () override |
int64_t | Size () override |
bool | Flush () override |
bool | Seek (uint64_t position) override |
bool | Tell (uint64_t *position) override |
bool | Open () override |
Static Public Member Functions | |
static bool | Delete (const std::string &url) |
HttpFile reads or writes network requests.
Note that calling Flush will indicate EOF for the upload and no more can be uploaded.
About how to use this, please visit the corresponding documentation [1].
[1] https://shaka-project.github.io/shaka-packager/html/tutorials/http_upload.html
Definition at line 39 of file http_file.h.