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

refine the http code.

This commit is contained in:
winlin 2015-06-14 19:42:43 +08:00
parent f8f6e438cc
commit 3211282b0c
4 changed files with 18 additions and 14 deletions

View file

@ -394,12 +394,14 @@ private:
virtual int process_request(ISrsHttpResponseWriter* w, ISrsHttpMessage* r);
};
// TODO: FIXME: rename to SrsResponseOnlyHttpConn.
class SrsStaticHttpConn : public SrsHttpConn
/**
* drop body of request, only process the response.
*/
class SrsResponseOnlyHttpConn : public SrsHttpConn
{
public:
SrsStaticHttpConn(IConnectionManager* cm, st_netfd_t fd, ISrsHttpServeMux* m);
virtual ~SrsStaticHttpConn();
SrsResponseOnlyHttpConn(IConnectionManager* cm, st_netfd_t fd, ISrsHttpServeMux* m);
virtual ~SrsResponseOnlyHttpConn();
public:
virtual int on_got_http_message(ISrsHttpMessage* msg);
};