mongoose/docs/c-api/http.h/mg_send_response_line.md
Dmitry Frank 849ec1684a Apply Mongoose docs edits by Ev
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
2016-07-26 15:06:04 +00:00

573 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);

Sends a 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