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:
parent
bfa07465f0
commit
a14267d2b4
9 changed files with 323 additions and 211 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue