Skip to content

Commit

Permalink
Merge pull request #944 from buddylindsey/hammertime
Browse files Browse the repository at this point in the history
Add documentation for _parseAccept function
  • Loading branch information
Blaine Schmeisser authored and Blaine Schmeisser committed May 18, 2013
2 parents a8c4c24 + f2645a8 commit fc14ca2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action/Request.php
Expand Up @@ -422,6 +422,12 @@ public function accepts($type = null) {
return $media::negotiate($this) ?: 'html';
}

/**
* Parses the `HTTP_ACCEPT` information the requesting client sends, and converts
* that data to an array for consumption by the rest of the framework.
*
* @return array All the types of content the client can accept.
*/
protected function _parseAccept() {
if ($this->_acceptContent) {
return $this->_acceptContent;
Expand Down

0 comments on commit fc14ca2

Please sign in to comment.