diff options
Diffstat (limited to 'include/HttpServ.h')
-rw-r--r-- | include/HttpServ.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/HttpServ.h b/include/HttpServ.h index aec3aad..34de345 100644 --- a/include/HttpServ.h +++ b/include/HttpServ.h @@ -25,6 +25,7 @@ class HttpResponse : public Base { HttpResponse(); virtual ~HttpResponse(); Task * BuildResponse(Handle * out); + void PrepareResponse(Handle * b = 0); String mime_type; String location; @@ -33,15 +34,17 @@ class HttpResponse : public Base { time_t last_modified; Buffer contents; bool cache; + Task * builder; private: String code_to_string(); + bool already_prepared; }; class HttpRequest : public Base { public: Variables * vars, * headers; - String url; + String uri; }; class Action; @@ -61,7 +64,6 @@ class HttpServ : public Task { String name; int localport; String root; - HttpResponse response; }; extern String endhl, endnl; |