aboutsummaryrefslogtreecommitdiff
path: root/picohttp.h
diff options
context:
space:
mode:
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 );