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

refine the error response.

This commit is contained in:
winlin 2015-08-21 17:15:32 +08:00
parent 2edcf1d4ff
commit 20a8818a8e
2 changed files with 15 additions and 30 deletions

View file

@ -78,6 +78,10 @@ class ISrsHttpResponseWriter;
// helper function: response in json format.
extern int srs_http_response_json(ISrsHttpResponseWriter* w, std::string data);
/**
* response a typical code object, for example:
* {code : 100}
*/
extern int srs_http_response_code(ISrsHttpResponseWriter* w, int code);
// get the status text of code.