WordPress.org

Make WordPress Core

Ticket #23828: 23828.diff

File 23828.diff, 2.0 KB (added by DrewAPicture, 5 years ago)
  • wp-includes/http.php

     
    4949 * This function is called first to make the request and there are other API
    5050 * functions to abstract out the above convoluted setup.
    5151 *
     52 * List of default arguments to override:
     53 * 'method'      => 'GET'
     54 * 'timeout'     => 5
     55 * 'redirection' => 5
     56 * 'httpversion' => '1.0'
     57 * 'blocking'    => true
     58 * 'headers'     => array()
     59 * 'body'        => null
     60 * 'cookies'     => array()
     61 *
    5262 * @since 2.7.0
    5363 *
    5464 * @param string $url Site URL to retrieve.
     
    6373/**
    6474 * Retrieve the raw response from the HTTP request using the GET method.
    6575 *
     76 * List of default arguments to override:
     77 * 'method'      => 'GET'
     78 * 'timeout'     => 5
     79 * 'redirection' => 5
     80 * 'httpversion' => '1.0'
     81 * 'blocking'    => true
     82 * 'headers'     => array()
     83 * 'body'        => null
     84 * 'cookies'     => array()
     85 *
    6686 * @see wp_remote_request() For more information on the response array format.
    6787 *
    6888 * @since 2.7.0
     
    7999/**
    80100 * Retrieve the raw response from the HTTP request using the POST method.
    81101 *
     102 * List of default arguments to override:
     103 * 'method'      => 'POST'
     104 * 'timeout'     => 5
     105 * 'redirection' => 5
     106 * 'httpversion' => '1.0'
     107 * 'blocking'    => true
     108 * 'headers'     => array()
     109 * 'body'        => null
     110 * 'cookies'     => array()
     111 *
    82112 * @see wp_remote_request() For more information on the response array format.
    83113 *
    84114 * @since 2.7.0
     
    95125/**
    96126 * Retrieve the raw response from the HTTP request using the HEAD method.
    97127 *
     128 * List of default arguments to override:
     129 * 'method'      => 'HEAD'
     130 * 'timeout'     => 5
     131 * 'redirection' => 5
     132 * 'httpversion' => '1.0'
     133 * 'blocking'    => true
     134 * 'headers'     => array()
     135 * 'body'        => null
     136 * 'cookies'     => array()
     137 *
    98138 * @see wp_remote_request() For more information on the response array format.
    99139 *
    100140 * @since 2.7.0