mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Update mg_parse_http.md
This commit is contained in:
1 parent
f8da303ca1
commit
1ee9735354
1 file changed
+4
-4
@@ -6,10 +6,10 @@ signature: |
|
||||
int mg_parse_http(const char *s, int n, struct http_message *hm, int is_req);
|
||||
---
|
||||
|
||||
Parse a HTTP message.
|
||||
Parses 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
|
||||
incomplete, `0` is returned. On parse error, negative number is returned.
|
||||
Returns the number of bytes parsed. If HTTP message is
|
||||
incomplete `0` is returned. On parse error, a negative number is returned.
|
||||
|
||||
Reference in new issue
Block a user