Closed amirouche closed 4 years ago
I'd like to use picohttpparser to build a web server using Chez Scheme.
Anyway, apparently it's possible to only parse the headers. The revelant signature is:
int phr_parse_headers(const char *buf, size_t len, struct phr_header *headers, size_t *num_headers, size_t last_len);
I am ok with that. But what can I do with the rest of the response in that case? Any pointers?
I am a newbie regarding building servers and http standard.
Also If I only parse the headers, what happens to the method and path?
TIA!
Firt step! You can got test.c to read. But it's seem like broken.
Personal backlog clean-up.
I'd like to use picohttpparser to build a web server using Chez Scheme.
Anyway, apparently it's possible to only parse the headers. The revelant signature is:
I am ok with that. But what can I do with the rest of the response in that case? Any pointers?
I am a newbie regarding building servers and http standard.
Also If I only parse the headers, what happens to the method and path?
TIA!