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

refine code, extrat the ISrsHttpMessage.

This commit is contained in:
winlin 2015-05-22 22:24:05 +08:00
parent e2955da78f
commit ce1bb6c605
13 changed files with 1323 additions and 1202 deletions

View file

@ -37,7 +37,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class SrsHttpUri;
class SrsHttpParser;
class SrsHttpMessage;
class ISrsHttpMessage;
class SrsStSocket;
// the default timeout for http client.
@ -73,14 +73,14 @@ public:
* @param req the data post to uri. empty string to ignore.
* @param ppmsg output the http message to read the response.
*/
virtual int post(std::string path, std::string req, SrsHttpMessage** ppmsg);
virtual int post(std::string path, std::string req, ISrsHttpMessage** ppmsg);
/**
* to get data from the uri.
* @param the path to request on.
* @param req the data post to uri. empty string to ignore.
* @param ppmsg output the http message to read the response.
*/
virtual int get(std::string path, std::string req, SrsHttpMessage** ppmsg);
virtual int get(std::string path, std::string req, ISrsHttpMessage** ppmsg);
private:
virtual void disconnect();
virtual int connect();