1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #319, support rpc raw api to query the HTTP RAW API configs.

This commit is contained in:
winlin 2015-08-28 12:28:18 +08:00
parent af0a76e51a
commit 2dcf3bc606
7 changed files with 236 additions and 21 deletions

View file

@ -320,6 +320,10 @@ public:
* dumps the vhost section to json.
*/
virtual int vhost_to_json(SrsConfDirective* vhost, SrsAmf0Object* obj);
/**
* dumps the http_api sections to json for raw api info.
*/
virtual int raw_to_json(SrsAmf0Object* obj);
/**
* get the config file path.
*/
@ -1061,7 +1065,15 @@ public:
/**
* whether enable the HTTP RAW API.
*/
virtual bool get_http_api_raw_api();
virtual bool get_raw_api();
/**
* whether allow rpc reload.
*/
virtual bool get_raw_api_allow_reload();
/**
* whether allow rpc config_query.
*/
virtual bool get_raw_api_allow_config_query();
// http stream section
private:
/**