Permalink
Browse files

add method to Zend\Http\Response\Stream

the content length is now exposed with getters and setters
  • Loading branch information...
1 parent fe7cfad commit 7da4fc6dab7d0dc3f617694b24e488f92a7a51ac @prolic committed Jan 20, 2013
Showing with 20 additions and 0 deletions.
  1. +20 −0 library/Zend/Http/Response/Stream.php
@@ -60,6 +60,26 @@ class Stream extends Response
protected $cleanup;
/**
+ * Set content length
+ *
+ * @param int $contentLength
+ */
+ public function setContentLength($contentLength = null)
+ {
+ $this->contentLength = $contentLength;
+ }
+
+ /**
+ * Get content length
+ *
+ * @return int
+ */
+ public function getContentLength()
+ {
+ return $this->contentLength;
+ }
+
+ /**
* Get the response as stream
*
* @return resource

0 comments on commit 7da4fc6

Please sign in to comment.