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

refine the http url handler match. refine json encode

This commit is contained in:
winlin 2014-04-03 11:49:14 +08:00
parent bfa07465f0
commit a14267d2b4
9 changed files with 323 additions and 211 deletions

View file

@ -48,8 +48,8 @@ public:
SrsApiRoot();
virtual ~SrsApiRoot();
public:
virtual bool can_handle(const char* path, int length, const char** pnext_path);
virtual int process_request(SrsSocket* skt, SrsHttpMessage* req, const char* path, int length);
virtual bool can_handle(const char* path, int length, const char** pchild);
virtual int do_process_request(SrsSocket* skt, SrsHttpMessage* req);
};
class SrsApiApi : public SrsHttpHandler
@ -58,8 +58,8 @@ public:
SrsApiApi();
virtual ~SrsApiApi();
public:
virtual bool can_handle(const char* path, int length, const char** pnext_path);
virtual int process_request(SrsSocket* skt, SrsHttpMessage* req, const char* path, int length);
virtual bool can_handle(const char* path, int length, const char** pchild);
virtual int do_process_request(SrsSocket* skt, SrsHttpMessage* req);
};
class SrsHttpApi : public SrsConnection