summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zero/all.rb1
-rw-r--r--lib/zero/response.rb19
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/zero/all.rb b/lib/zero/all.rb
index 3252d6e..c994bee 100644
--- a/lib/zero/all.rb
+++ b/lib/zero/all.rb
@@ -2,3 +2,4 @@ require_relative 'controller'
require_relative 'router'
require_relative 'renderer'
require_relative 'request'
+require_relative 'response' \ No newline at end of file
diff --git a/lib/zero/response.rb b/lib/zero/response.rb
new file mode 100644
index 0000000..418c8a7
--- /dev/null
+++ b/lib/zero/response.rb
@@ -0,0 +1,19 @@
+module Zero
+
+ # This is the representation of a response
+ #
+ class Response
+ attr_accessor :status, :header, :body
+
+ # Returns the data of the response as an array:
+ # [status, header, body]
+ # to be usable by any webserver
+ #
+ # @return Array
+ #
+ def to_a()
+ [@status, @header, @body]
+ end
+
+ end
+end