mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-13 05:12:51 +08:00
Update mg_parse_http.md
This commit is contained in:
parent
f8da303ca1
commit
1ee9735354
@ -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.
|
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
|
Returns 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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user