mongoose/docs/c-api/http.h/mg_send_response_line.md
Alexander Alashkin 9101cd0339 Use lld for ID
PUBLISHED_FROM=1246247fc29eb9a75b986ff7bb2d2350a52c03fc
2016-07-22 16:26:31 +00:00

570 B

title decl_name symbol_kind signature
mg_send_response_line() mg_send_response_line func void mg_send_response_line(struct mg_connection *c, int status_code, const char *extra_headers);

Send response status line. If extra_headers is not NULL, then extra_headers are also sent after the reponse line. extra_headers must NOT end end with new line. Example:

 mg_send_response_line(nc, 200, "Access-Control-Allow-Origin: *");

Will result in:

 HTTP/1.1 200 OK\r\n
 Access-Control-Allow-Origin: *\r\n