From 0f0db0ee56b69d580fe66528a379fb08d714bf4d Mon Sep 17 00:00:00 2001
From: Pixel <pixel@nobis-crew.org>
Date: Fri, 18 Nov 2011 22:52:12 -0800
Subject: Starting to re-organize the HTTP code a bit. Sharing code between the
 server and a potential client makes sense. Also packing requests and
 responses into structures / classes is probably a good idea.

---
 tests/test-Http.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'tests')

diff --git a/tests/test-Http.cc b/tests/test-Http.cc
index 496d7e6..de3c6f3 100644
--- a/tests/test-Http.cc
+++ b/tests/test-Http.cc
@@ -10,10 +10,10 @@ using namespace Balau;
 class TestAction : public HttpServer::Action {
   public:
       TestAction() : Action(Regexes::any) { }
-    virtual bool Do(HttpServer * server, HttpServer::Action::ActionMatches & m, IO<Handle> out, HttpServer::StringMap & vars, HttpServer::StringMap & headers, HttpServer::FileList & files);
+    virtual bool Do(HttpServer * server, Http::Request & req, HttpServer::Action::ActionMatch & match, IO<Handle> out);
 };
 
-bool TestAction::Do(HttpServer * server, HttpServer::Action::ActionMatches & m, IO<Handle> out, HttpServer::StringMap & vars, HttpServer::StringMap & headers, HttpServer::FileList & files) {
+bool TestAction::Do(HttpServer * server, Http::Request & req, HttpServer::Action::ActionMatch & match, IO<Handle> out) {
     static const char str[] =
 "HTTP/1.1 200 Found\r\n"
 "Content-Type: text/html; charset=UTF-8\r\n"
-- 
cgit v1.2.3