mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Use lld for ID
PUBLISHED_FROM=1246247fc29eb9a75b986ff7bb2d2350a52c03fc
This commit is contained in:
1 parent
4b2d3f5f5b
commit
9101cd0339
26 files changed
+80
-79
No files matched your search
@@ -7,15 +7,15 @@ signature: |
|
||||
int64_t content_length, const char *extra_headers);
|
||||
---
|
||||
|
||||
Sends a response line and headers.
|
||||
This function sends a response line with the `status_code`, and automatically
|
||||
sends one header: either "Content-Length" or "Transfer-Encoding".
|
||||
Send response line and headers.
|
||||
This function sends response line with the `status_code`, and automatically
|
||||
sends one header: either "Content-Length", or "Transfer-Encoding".
|
||||
If `content_length` is negative, then "Transfer-Encoding: chunked" header
|
||||
is sent, otherwise, "Content-Length" header is sent.
|
||||
|
||||
NOTE: If `Transfer-Encoding` is `chunked`, then message body must be sent
|
||||
using `mg_send_http_chunk()` or `mg_printf_http_chunk()` functions.
|
||||
Otherwise, `mg_send()` or `mg_printf()` must be used.
|
||||
Extra headers could be set through `extra_headers`. Note `extra_headers`
|
||||
Extra headers could be set through `extra_headers` - and note `extra_headers`
|
||||
must NOT be terminated by a new line.
|
||||
|
||||
Reference in new issue
Block a user