|
Shaka Packager SDK
|
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 |
Fetches CPIX documents over HTTP(S). Replaceable for testing.
Definition at line 22 of file cpix_key_source.h.
|
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.
| headers | contains extra HTTP headers in "Name: value" form. | |
| [out] | response | receives the response body. Should not be NULL. |