mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
implements basic http response framework
This commit is contained in:
parent
341b5151d9
commit
bfa07465f0
4 changed files with 143 additions and 41 deletions
|
@ -48,7 +48,17 @@ public:
|
|||
SrsApiRoot();
|
||||
virtual ~SrsApiRoot();
|
||||
public:
|
||||
virtual bool can_handle(const char* path, int length);
|
||||
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);
|
||||
};
|
||||
|
||||
class SrsApiApi : public SrsHttpHandler
|
||||
{
|
||||
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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue