tinywebd

diff src/http.h @ 7:5ec50ca0d071

separated the server code
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 17 Apr 2015 11:45:08 +0300
parents def49a046566
children
line diff
     1.1 --- a/src/http.h	Fri Apr 17 01:57:25 2015 +0300
     1.2 +++ b/src/http.h	Fri Apr 17 11:45:08 2015 +0300
     1.3 @@ -36,9 +36,9 @@
     1.4  #define HTTP_HDR_NOMEM		-2
     1.5  #define HTTP_HDR_PARTIAL	-3
     1.6  
     1.7 -int http_parse_header(struct http_req_header *hdr, const char *buf, int bufsz);
     1.8 -void http_print_header(struct http_req_header *hdr);
     1.9 -void http_destroy_header(struct http_req_header *hdr);
    1.10 +int http_parse_request(struct http_req_header *hdr, const char *buf, int bufsz);
    1.11 +void http_log_request(struct http_req_header *hdr);
    1.12 +void http_destroy_request(struct http_req_header *hdr);
    1.13  
    1.14  int http_init_resp(struct http_resp_header *resp);
    1.15  int http_add_resp_field(struct http_resp_header *resp, const char *fmt, ...);