tinywebd

diff src/http.h @ 2:7bb4c2a0a360

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 15 Apr 2015 23:44:22 +0300
parents f425a9805d17
children 852a745503cf
line diff
     1.1 --- a/src/http.h	Tue Apr 14 08:32:51 2015 +0300
     1.2 +++ b/src/http.h	Wed Apr 15 23:44:22 2015 +0300
     1.3 @@ -33,10 +33,16 @@
     1.4  	enum http_method method;
     1.5  	char *uri;
     1.6  	int ver_major, ver_minor;	/* http version */
     1.7 -	/* XXX cont. */
     1.8 +	char **hdrfields;
     1.9 +	int num_hdrfields;
    1.10  };
    1.11  
    1.12  
    1.13 +int http_parse_header(struct http_req_header *hdr, const char *buf, int bufsz);
    1.14 +
    1.15 +const char *http_strmsg(int code);
    1.16 +
    1.17 +
    1.18  /* HTTP 1xx message strings */
    1.19  const char *http_msg1xx[] = {
    1.20  	"Continue",					/* 100 */
    1.21 @@ -98,6 +104,4 @@
    1.22  	"HTTP Version not supported"	/* 505 */
    1.23  };
    1.24  
    1.25 -const char *http_strmsg(int code);
    1.26 -
    1.27  #endif	/* HTTP_H_ */