aboutsummaryrefslogtreecommitdiff
path: root/picohttp.h
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-03-13 22:24:28 +0100
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-03-13 22:24:28 +0100
commitf713f27297f04981054937f295a895edaab594cb (patch)
tree90fd7c76158e2560075d69739798a10f64f73897 /picohttp.h
parentccb6ae48b135913588affdd82e11a11054a14a80 (diff)
downloadlitheweb-f713f27297f04981054937f295a895edaab594cb.tar.gz
litheweb-f713f27297f04981054937f295a895edaab594cb.tar.bz2
Wed Mar 13 22:24:28 CET 2013
Diffstat (limited to 'picohttp.h')
-rw-r--r--picohttp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/picohttp.h b/picohttp.h
index 093cabc..66317b1 100644
--- a/picohttp.h
+++ b/picohttp.h
@@ -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 );