Skip to content
Browse files

Specify format of header return values

  • Loading branch information...
1 parent 9c434a8 commit 8e7bc60728234d88c53614832e4977cdc167ff03 @beberlei committed Mar 24, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 proposed/http-client.md
View
9 proposed/http-client.md
@@ -65,6 +65,11 @@ A value objects come with this interface, the Response which is returned from th
/**
* Return all headers of this response.
+ *
+ * Header names are returned as lower-case keys. Their values are returned
+ * in an array themselves to support multiple occurances of headers.
+ *
+ * @example array(array("content-type" => array("text/html"))
*
* @return array
*/
@@ -73,9 +78,9 @@ A value objects come with this interface, the Response which is returned from th
/**
* Return a specified header of this response or null if not found,
*
- * Returns an array if multiple occurances of a header are returned.
+ * Returns an array no matter if single or multiple occurances of a header exist.
*
- * @return string|array|null
+ * @return array|null
*/
public function getHeader($name);
}

0 comments on commit 8e7bc60

Please sign in to comment.
Something went wrong with that request. Please try again.