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
02937f88
Commit
02937f88
authored
Jan 04, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API doc synced
parent
51f0cc2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
API.md
docs/API.md
+4
-7
No files found.
docs/API.md
View file @
02937f88
...
...
@@ -124,13 +124,8 @@ context of the IO thread.
void mg_printf_data(struct mg_connection *, const char *format, ...);
These functions are used to construct a response to the client. HTTP response
consists of three parts:
*
a status line
*
zero or more HTTP headers
*
response body
Mongoose provides functions for all three parts:
consists of three parts: a status line, zero or more HTTP headers,
a response body. Mongoose provides functions for all three parts:
*
`mg_send_status()`
is used to create status line. This function can be
called zero or once. If
`mg_send_status()`
is not called, then Mongoose
will send status 200 (success) implicitly.
...
...
@@ -141,6 +136,8 @@ Mongoose provides functions for all three parts:
implicitly, and sends data in chunks. Therefore, it is not necessary to
set
`Content-Length`
header.
<!-- -->
int mg_websocket_write(struct mg_connection* conn, int opcode,
const char *data, size_t data_len);
...
...
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