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
1ee97353
Commit
1ee97353
authored
Jul 22, 2016
by
Evelyn
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mg_parse_http.md
parent
f8da303c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mg_parse_http.md
docs/c-api/http.h/mg_parse_http.md
+4
-4
No files found.
docs/c-api/http.h/mg_parse_http.md
View file @
1ee97353
...
@@ -6,10 +6,10 @@ signature: |
...
@@ -6,10 +6,10 @@ signature: |
int mg_parse_http(const char *s, int n, struct http_message *hm, int is_req);
int mg_parse_http(const char *s, int n, struct http_message *hm, int is_req);
---
---
Parse a HTTP message.
Parse
s
a HTTP message.
`is_req`
should be set to 1 if parsing request, 0 if reply.
`is_req`
should be set to 1 if parsing
a
request, 0 if reply.
Return number of bytes parsed. If HTTP message is
Return
s the
number of bytes parsed. If HTTP message is
incomplete
,
`0`
is returned. On parse error,
negative number is returned.
incomplete
`0`
is returned. On parse error, a
negative number is returned.
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