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:
parent
2edcf1d4ff
commit
20a8818a8e
2 changed files with 15 additions and 30 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue