From afbf306336959cf8476911835de3510ca7542644 Mon Sep 17 00:00:00 2001 From: Edward Brosens Date: Thu, 11 Jun 2015 14:29:10 +0200 Subject: [PATCH] add getter for protected headers property --- flight/net/Response.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flight/net/Response.php b/flight/net/Response.php index 48f383c..2b22158 100644 --- a/flight/net/Response.php +++ b/flight/net/Response.php @@ -145,6 +145,14 @@ class Response { return $this; } + /** + * Returns the headers from the response + * @return array + */ + public function headers() { + return $this->headers; + } + /** * Writes content to the response body. *