Shaka Packager SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
shaka::media::CpixFetcher Class Referenceabstract

Fetches CPIX documents over HTTP(S). Replaceable for testing. More...

#include <cpix_key_source.h>

Public Member Functions

virtual Status Fetch (const std::string &url, const std::string &request_body, const std::vector< std::string > &headers, std::string *response)=0
 

Detailed Description

Fetches CPIX documents over HTTP(S). Replaceable for testing.

Definition at line 22 of file cpix_key_source.h.

Member Function Documentation

◆ Fetch()

virtual Status shaka::media::CpixFetcher::Fetch ( const std::string &  url,
const std::string &  request_body,
const std::vector< std::string > &  headers,
std::string *  response 
)
pure virtual

Fetches the CPIX document at url. If request_body is non-empty it is sent with POST and the response body is the document; otherwise the document is fetched with GET.

Parameters
headerscontains extra HTTP headers in "Name: value" form.
[out]responsereceives the response body. Should not be NULL.

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