Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
6ae6ee9f
Commit
6ae6ee9f
authored
Jul 22, 2016
by
Evelyn
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mg_send_head.md
parent
a11eafc5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mg_send_head.md
docs/c-api/http.h/mg_send_head.md
+4
-4
No files found.
docs/c-api/http.h/mg_send_head.md
View file @
6ae6ee9f
...
...
@@ -7,15 +7,15 @@ signature: |
int64_t content_length, const char *extra_headers);
---
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".
Send
s 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".
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`
- and n
ote
`extra_headers`
Extra headers could be set through
`extra_headers`
. N
ote
`extra_headers`
must NOT be terminated by a new line.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment