diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-03-13 22:24:28 +0100 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-03-13 22:24:28 +0100 |
commit | f713f27297f04981054937f295a895edaab594cb (patch) | |
tree | 90fd7c76158e2560075d69739798a10f64f73897 /picohttp.h | |
parent | ccb6ae48b135913588affdd82e11a11054a14a80 (diff) | |
download | litheweb-f713f27297f04981054937f295a895edaab594cb.tar.gz litheweb-f713f27297f04981054937f295a895edaab594cb.tar.bz2 |
Wed Mar 13 22:24:28 CET 2013
Diffstat (limited to 'picohttp.h')
-rw-r--r-- | picohttp.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2,7 +2,7 @@ #ifndef PICOHTTP_H_HEADERGUARD #define PICOHTTP_H_HEADERGUARD -#include <stdlib.h> +#include <stddef.h> #include <stdint.h> #define PICOHTTP_MAJORVERSION(x) ( (x & 0x7f00) >> 8 ) @@ -83,8 +83,8 @@ struct picohttpRequest { struct picohttpIoOps const * ioops; struct picohttpURLRoute const * route; struct picohttpVar *get_vars; - char const *url; - char const *urltail; + char *url; + char *urltail; int16_t status; int16_t method; struct { @@ -116,6 +116,9 @@ void picohttpProcessRequest( struct picohttpIoOps const * const ioops, struct picohttpURLRoute const * const routes ); +void picohttpStatusResponse( + struct picohttpRequest *req, int16_t status ); + int picohttpResponseSendHeader ( struct picohttpRequest * const req ); |