mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-12 07:29:04 +08:00
7bed7ff482
Comments in headers are changed a bit: removed adoc-specific stuff, markdown is used instead PUBLISHED_FROM=9242cce85cc52a47a197d377e7e23804721a6bb5
570 B
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