Shaka Player Embedded
Public Member Functions | List of all members
shaka::js::Request Struct Reference

#include <net.h>

Inheritance diagram for shaka::js::Request:
shaka::Struct shaka::GenericConverter shaka::memory::Traceable

Public Member Functions

 DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY (Request)
 
 ADD_DICT_FIELD (uris, std::vector< std::string >)
 
 ADD_DICT_FIELD (method, std::string)
 
 ADD_DICT_FIELD (headers, std::unordered_map< std::string, std::string >)
 
 ADD_DICT_FIELD (body, optional< ByteBuffer >)
 
- Public Member Functions inherited from shaka::Struct
 Struct ()
 
 ~Struct () override
 
 Struct (const Struct &)
 
 Struct (Struct &&)
 
Structoperator= (const Struct &)
 
Structoperator= (Struct &&)
 
bool TryConvert (Handle< JsValue > value) override
 
ReturnVal< JsValue > ToJsValue () const override
 
void Trace (memory::HeapTracer *tracer) const override
 
- Public Member Functions inherited from shaka::GenericConverter
virtual ~GenericConverter ()
 
- Public Member Functions inherited from shaka::memory::Traceable
virtual ~Traceable ()
 
virtual bool IsRootedAlive () const
 
virtual bool IsShortLived () const
 

Additional Inherited Members

- Static Public Attributes inherited from shaka::memory::Traceable
static constexpr const uint64_t kShortLiveDurationMs = 5000
 
- Protected Member Functions inherited from shaka::Struct
template<typename Parent , typename Field >
Field CreateFieldConverter (const std::string &name, Field Parent::*field)
 

Detailed Description

Definition at line 31 of file net.h.

Member Function Documentation

§ ADD_DICT_FIELD() [1/4]

shaka::js::Request::ADD_DICT_FIELD ( uris  ,
std::vector< std::string >   
)

§ ADD_DICT_FIELD() [2/4]

shaka::js::Request::ADD_DICT_FIELD ( method  ,
std::string   
)

§ ADD_DICT_FIELD() [3/4]

shaka::js::Request::ADD_DICT_FIELD ( headers  ,
std::unordered_map< std::string, std::string >   
)

§ ADD_DICT_FIELD() [4/4]

shaka::js::Request::ADD_DICT_FIELD ( body  ,
optional< ByteBuffer  
)

§ DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY()

shaka::js::Request::DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY ( Request  )

The documentation for this struct was generated from the following file: