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

refine http request post. 2.0.132.

This commit is contained in:
winlin 2015-03-06 11:51:20 +08:00
parent 3982ec1d87
commit 964e4be9d4
6 changed files with 88 additions and 259 deletions

View file

@ -57,10 +57,9 @@ public:
/**
* to post data to the uri.
* @param req the data post to uri. empty string to ignore.
* @param status_code the output status code response by server.
* @param res output the response data from server.
* @param ppmsg output the http message to read the response.
*/
virtual int post(SrsHttpUri* uri, std::string req, int& status_code, std::string& res);
virtual int post(SrsHttpUri* uri, std::string req, SrsHttpMessage** ppmsg);
/**
* to get data from the uri.
* @param req the data post to uri. empty string to ignore.