mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-08 21:46:54 +08:00
23122b327c
It would be probably good idea to also remove tools/docgen.py and asciidoc.mk, but asciidoc.mk is still mentioned under `cloud/doc`, which may contain some useful info which we'll need at least to review before removing. PUBLISHED_FROM=faf454d4c52a2f07ea8ac084cf0bd11a0c9c9b3b
22 lines
570 B
Markdown
22 lines
570 B
Markdown
---
|
|
title: "mg_send_response_line()"
|
|
decl_name: "mg_send_response_line"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
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
|
|
|