mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Improve test coverage for http message
This commit is contained in:
parent
43a5cea158
commit
6c50d85671
3 changed files with 39 additions and 0 deletions
|
@ -460,6 +460,11 @@ string SrsHttpMessage::host()
|
|||
return _uri->get_host();
|
||||
}
|
||||
|
||||
int SrsHttpMessage::port()
|
||||
{
|
||||
return _uri->get_port();
|
||||
}
|
||||
|
||||
string SrsHttpMessage::path()
|
||||
{
|
||||
return _uri->get_path();
|
||||
|
|
|
@ -163,6 +163,7 @@ public:
|
|||
// The url maybe the path.
|
||||
virtual std::string url();
|
||||
virtual std::string host();
|
||||
virtual int port();
|
||||
virtual std::string path();
|
||||
virtual std::string query();
|
||||
virtual std::string ext();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue