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

API: Parse fragment of URI. v5.0.106 (#3295)

* parse fragment of uri
* adapt FMLE URL: 'rtmp://ip/app/app2#k=v/stream', then add more test case

Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
Haibo Chen 2022-12-08 15:48:10 +08:00 committed by GitHub
parent 0e550d496b
commit c5a0c5947f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 42 additions and 4 deletions

View file

@ -580,6 +580,7 @@ private:
int port;
std::string path;
std::string query;
std::string fragment_;
std::string username_;
std::string password_;
std::map<std::string, std::string> query_values_;
@ -599,6 +600,7 @@ public:
virtual std::string get_path();
virtual std::string get_query();
virtual std::string get_query_by_key(std::string key);
virtual std::string get_fragment();
virtual std::string username();
virtual std::string password();
private: