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

support JSONP DELTE/POST/PUT

This commit is contained in:
winlin 2015-08-23 00:01:03 +08:00
parent baa70d4ddd
commit e43d4e46b4
4 changed files with 50 additions and 12 deletions

View file

@ -203,6 +203,10 @@ private:
std::map<std::string, std::string> _query;
// the transport connection, can be NULL.
SrsConnection* conn;
// whether request is jsonp.
bool jsonp;
// the method in QueryString will override the HTTP method.
std::string jsonp_method;
public:
SrsHttpMessage(SrsStSocket* io, SrsConnection* c);
virtual ~SrsHttpMessage();
@ -285,6 +289,8 @@ public:
* @remark user must free the return request.
*/
virtual SrsRequest* to_request(std::string vhost);
public:
virtual bool is_jsonp();
};
/**