7 #ifndef PACKAGER_MEDIA_BASE_HTTP_KEY_FETCHER_H_
8 #define PACKAGER_MEDIA_BASE_HTTP_KEY_FETCHER_H_
12 #include <packager/file/http_file.h>
13 #include <packager/macros/classes.h>
14 #include <packager/media/base/key_fetcher.h>
15 #include <packager/status.h>
36 const std::string& request,
37 std::string* response)
override;
44 virtual Status
Get(
const std::string& url, std::string* response);
51 virtual Status
Post(
const std::string& url,
52 const std::string& data,
53 std::string* response);
56 Status FetchInternal(HttpMethod method,
const std::string& url,
57 const std::string& data, std::string* response);
59 const int32_t timeout_in_seconds_;
All the methods that are virtual are virtual for mocking.