Shaka Packager SDK
Classes | Public Member Functions | Static Public Member Functions | List of all members
shaka::HttpFile Class Reference

#include <http_file.h>

Inheritance diagram for shaka::HttpFile:

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
 
HttpFileoperator= (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)
 

Detailed Description

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.


The documentation for this class was generated from the following files: