Shaka Player Embedded
Classes | Public Member Functions | Public Attributes | Friends | List of all members
shaka::Request Class Referencefinal

#include <net.h>

Classes

class  Impl
 

Public Member Functions

 ~Request ()
 
 Request (const Request &)=delete
 
Requestoperator= (const Request &)=delete
 
 Request (Request &&)=delete
 
Requestoperator= (Request &&)=delete
 
const uint8_t * body () const
 
size_t body_size () const
 
void SetBodyCopy (const uint8_t *data, size_t size)
 

Public Attributes

std::vector< std::string > uris
 
std::string method
 
std::unordered_map< std::string, std::string > headers
 

Friends

class JsManager
 
class Player
 

Detailed Description

Defines a network request. This is passed to one or more request filters that may alter the request, then it is passed to a scheme plugin which performs the actual operation.

Definition at line 55 of file net.h.

Constructor & Destructor Documentation

§ ~Request()

shaka::Request::~Request ( )

Definition at line 28 of file net_public.cc.

§ Request() [1/2]

shaka::Request::Request ( const Request )
delete

§ Request() [2/2]

shaka::Request::Request ( Request &&  )
delete

Member Function Documentation

§ body()

const uint8_t * shaka::Request::body ( ) const
Returns
The body of the request, or nullptr if no body.

Definition at line 30 of file net_public.cc.

§ body_size()

size_t shaka::Request::body_size ( ) const
Returns
The number of bytes in body.

Definition at line 36 of file net_public.cc.

§ operator=() [1/2]

Request& shaka::Request::operator= ( Request &&  )
delete

§ operator=() [2/2]

Request& shaka::Request::operator= ( const Request )
delete

§ SetBodyCopy()

void shaka::Request::SetBodyCopy ( const uint8_t *  data,
size_t  size 
)

Sets the body of the request to a copy of the given data. Can be called with nullptr to not send any data.

Definition at line 42 of file net_public.cc.

Friends And Related Function Documentation

§ JsManager

friend class JsManager
friend

Definition at line 87 of file net.h.

§ Player

friend class Player
friend

Definition at line 88 of file net.h.

Member Data Documentation

§ headers

std::unordered_map<std::string, std::string> shaka::Request::headers

A mapping of headers for the request.

Definition at line 71 of file net.h.

§ method

std::string shaka::Request::method

The HTTP method to use for the request.

Definition at line 68 of file net.h.

§ uris

std::vector<std::string> shaka::Request::uris

An array of URIs to attempt. They will be tried in the order they are given.

Definition at line 65 of file net.h.


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