mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #179, enable http api crossdomain for dvr api.
This commit is contained in:
parent
1445086451
commit
c67a4fdf97
11 changed files with 267 additions and 3 deletions
|
@ -159,11 +159,21 @@ public:
|
|||
virtual int serve_http(ISrsGoHttpResponseWriter* w, SrsHttpMessage* r);
|
||||
};
|
||||
|
||||
class SrsGoApiDvrs : public ISrsGoHttpHandler
|
||||
{
|
||||
public:
|
||||
SrsGoApiDvrs();
|
||||
virtual ~SrsGoApiDvrs();
|
||||
public:
|
||||
virtual int serve_http(ISrsGoHttpResponseWriter* w, SrsHttpMessage* r);
|
||||
};
|
||||
|
||||
class SrsHttpApi : public SrsConnection
|
||||
{
|
||||
private:
|
||||
SrsHttpParser* parser;
|
||||
SrsGoHttpServeMux* mux;
|
||||
bool crossdomain_required;
|
||||
public:
|
||||
SrsHttpApi(SrsServer* svr, st_netfd_t fd, SrsGoHttpServeMux* m);
|
||||
virtual ~SrsHttpApi();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue