picoev: make compile, add header parsing

This commit is contained in:
Sumeet Chhetri 2020-06-07 04:53:30 +05:30 committed by GitHub
parent d62d0c40d2
commit 442030a7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 41 additions and 17 deletions

View file

@ -39,12 +39,12 @@ extern "C" {
/* contains name and value of a header (name == NULL if is a continuing line
* of a multiline header */
struct phr_header {
typedef struct phr_header {
const char *name;
size_t name_len;
const char *value;
size_t value_len;
};
}phr_header;
/* returns number of bytes consumed if successful, -2 if request is partial,
* -1 if failed */