phpDoc corrections for http.php, props jacobsantos fixes #7550

git-svn-id: http://svn.automattic.com/wordpress/trunk@8842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-09-08 01:23:43 +00:00
parent 3a55217a16
commit 71b1269695
1 changed files with 5 additions and 9 deletions

View File

@ -1024,18 +1024,14 @@ function &_wp_http_get_object() {
* The array structure is a little complex. * The array structure is a little complex.
* *
* <code> * <code>
* $res = array( 'headers' => * $res = array( 'headers' => array(), 'response' => array('code', 'message') );
* 'response' => array('code', 'message'),
* 'headers' => array()
* );
* </code> * </code>
* *
* All of the headers in $res['headers']['headers'] are with the name as the key * All of the headers in $res['headers'] are with the name as the key and the
* and the value as the value. So to get the User-Agent, you would do the * value as the value. So to get the User-Agent, you would do the following.
* following.
* *
* <code> * <code>
* $user_agent = $res['headers']['headers']['user-agent']; * $user_agent = $res['headers']['user-agent'];
* </code> * </code>
* *
* The body is the raw response content and can be retrieved from $res['body']. * The body is the raw response content and can be retrieved from $res['body'].
@ -1043,7 +1039,7 @@ function &_wp_http_get_object() {
* This function is called first to make the request and there are other API * This function is called first to make the request and there are other API
* functions to abstract out the above convoluted setup. * functions to abstract out the above convoluted setup.
* *
* @since 2.7 * @since 2.7.0
* *
* @param string $url Site URL to retrieve. * @param string $url Site URL to retrieve.
* @param array $args Optional. Override the defaults. * @param array $args Optional. Override the defaults.