mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Change id from int to string for the statistics. 3.0.157
This commit is contained in:
parent
010878889c
commit
fb7c051833
14 changed files with 108 additions and 95 deletions
|
@ -485,12 +485,12 @@ public:
|
|||
virtual std::string path() = 0;
|
||||
virtual std::string query() = 0;
|
||||
virtual std::string ext() = 0;
|
||||
// Get the RESTful id,
|
||||
// Get the RESTful id, in string,
|
||||
// for example, pattern is /api/v1/streams, path is /api/v1/streams/100,
|
||||
// then the rest id is 100.
|
||||
// @param pattern the handler pattern which will serve the request.
|
||||
// @return the REST id; -1 if not matched.
|
||||
virtual int parse_rest_id(std::string pattern) = 0;
|
||||
// @return the REST id; "" if not matched.
|
||||
virtual std::string parse_rest_id(std::string pattern) = 0;
|
||||
public:
|
||||
// The left all data is chunked body, the infinite chunked mode,
|
||||
// which is chunked encoding without chunked header.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue