mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #158: http-callback check http status code ok(200). 2.0.84
This commit is contained in:
parent
8df0f724d6
commit
9d34820c80
10 changed files with 88 additions and 14 deletions
|
@ -54,9 +54,10 @@ public:
|
|||
/**
|
||||
* to post data to the uri.
|
||||
* @param req the data post to uri.
|
||||
* @param res the response data from server.
|
||||
* @param status_code the output status code response by server.
|
||||
* @param res output the response data from server.
|
||||
*/
|
||||
virtual int post(SrsHttpUri* uri, std::string req, std::string& res);
|
||||
virtual int post(SrsHttpUri* uri, std::string req, int& status_code, std::string& res);
|
||||
private:
|
||||
virtual void disconnect();
|
||||
virtual int connect(SrsHttpUri* uri);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue