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

For #1638, #307, show error information when api failed.

This commit is contained in:
winlin 2020-03-21 19:00:47 +08:00
parent d2036455ac
commit 3f6a2871b0
2 changed files with 32 additions and 17 deletions

View file

@ -32,6 +32,7 @@ class SrsHttpParser;
class SrsHttpHandler;
class SrsServer;
class SrsRtcServer;
class SrsJsonObject;
#include <srs_app_st.hpp>
#include <srs_app_conn.hpp>
@ -174,6 +175,8 @@ public:
virtual ~SrsGoApiSdp();
public:
virtual srs_error_t serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r);
private:
virtual srs_error_t do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r, SrsJsonObject* res);
};
class SrsGoApiClients : public ISrsHttpHandler