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

for #293, #277, support http chunked encoding

This commit is contained in:
winlin 2015-01-19 01:05:24 +08:00
parent 15d87537a1
commit b04888a35d
3 changed files with 48 additions and 4 deletions

View file

@ -128,6 +128,10 @@ public:
ISrsGoHttpResponseWriter();
virtual ~ISrsGoHttpResponseWriter();
public:
// when chunked mode,
// final the request to complete the chunked encoding.
virtual int final_request() = 0;
// Header returns the header map that will be sent by WriteHeader.
// Changing the header after a call to WriteHeader (or Write) has
// no effect.
@ -319,6 +323,7 @@ public:
SrsGoHttpResponseWriter(SrsStSocket* io);
virtual ~SrsGoHttpResponseWriter();
public:
virtual int final_request();
virtual SrsGoHttpHeader* header();
virtual int write(char* data, int size);
virtual void write_header(int code);