http\Response
[mdref/mdref-http] / http / Env / Response / __construct.md
diff --git a/http/Env/Response/__construct.md b/http/Env/Response/__construct.md
new file mode 100644 (file)
index 0000000..fc2e6d9
--- /dev/null
@@ -0,0 +1,29 @@
+# void http\Env\Response::__construct()
+
+Create a new env response message instance.
+
+## Params:
+
+None.
+
+## Throws:
+
+* http\Exception.
+
+## Example:
+
+    <?php
+    $res = new http\Env\Response;
+    $res->setContentType("text/plain");
+    $res->getBody()->append("Hello world!\n");
+    $res->send(STDOUT);
+    ?>
+
+Yields:
+
+    HTTP/1.1 200 OK
+    Accept-Ranges: bytes
+    Content-Type: text/plain
+    ETag: "b2a9e441"
+
+    Hello world!