#include <http_file.h>
|
| | 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 () |
| |
|
| 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 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.
◆ HttpFile() [1/2]
| shaka::HttpFile::HttpFile |
( |
HttpMethod |
method, |
|
|
const std::string & |
url |
|
) |
| |
◆ HttpFile() [2/2]
| shaka::HttpFile::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()
| shaka::HttpFile::~HttpFile |
( |
| ) |
|
|
overrideprotected |
◆ Close()
| bool shaka::HttpFile::Close |
( |
| ) |
|
|
override |
◆ CloseForWriting()
| void shaka::HttpFile::CloseForWriting |
( |
| ) |
|
|
override |
◆ CloseWithStatus()
| Status shaka::HttpFile::CloseWithStatus |
( |
| ) |
|
◆ Delete()
| bool shaka::HttpFile::Delete |
( |
const std::string & |
url | ) |
|
|
static |
◆ Flush()
| bool shaka::HttpFile::Flush |
( |
| ) |
|
|
override |
◆ Open()
| bool shaka::HttpFile::Open |
( |
| ) |
|
|
override |
◆ Read()
| int64_t shaka::HttpFile::Read |
( |
void * |
buffer, |
|
|
uint64_t |
length |
|
) |
| |
|
override |
◆ Seek()
| bool shaka::HttpFile::Seek |
( |
uint64_t |
position | ) |
|
|
override |
◆ Size()
| int64_t shaka::HttpFile::Size |
( |
| ) |
|
|
override |
◆ Tell()
| bool shaka::HttpFile::Tell |
( |
uint64_t * |
position | ) |
|
|
override |
◆ Write()
| int64_t shaka::HttpFile::Write |
( |
const void * |
buffer, |
|
|
uint64_t |
length |
|
) |
| |
|
override |
The documentation for this class was generated from the following files: