- Timestamp:
- 12/15/2022 09:30:26 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-requests-response.php
r52328 r54997 9 9 10 10 /** 11 * Core wrapper object for a Requests_Response for standardisation.11 * Core wrapper object for a WpOrg\Requests\Response for standardisation. 12 12 * 13 13 * @since 4.6.0 … … 20 20 * 21 21 * @since 4.6.0 22 * @var Requests_Response22 * @var \WpOrg\Requests\Response 23 23 */ 24 24 protected $response; … … 37 37 * @since 4.6.0 38 38 * 39 * @param Requests_Response $response HTTP response.40 * @param string $filename Optional. File name. Default empty.39 * @param \WpOrg\Requests\Response $response HTTP response. 40 * @param string $filename Optional. File name. Default empty. 41 41 */ 42 public function __construct( Requests_Response $response, $filename = '' ) {42 public function __construct( WpOrg\Requests\Response $response, $filename = '' ) { 43 43 $this->response = $response; 44 44 $this->filename = $filename; … … 50 50 * @since 4.6.0 51 51 * 52 * @return Requests_Response HTTP response.52 * @return WpOrg\Requests\Response HTTP response. 53 53 */ 54 54 public function get_response_object() { … … 61 61 * @since 4.6.0 62 62 * 63 * @return \ Requests_Utility_CaseInsensitiveDictionary Map of header name to header value.63 * @return \WpOrg\Requests\Utility\CaseInsensitiveDictionary Map of header name to header value. 64 64 */ 65 65 public function get_headers() { 66 66 // Ensure headers remain case-insensitive. 67 $converted = new Requests_Utility_CaseInsensitiveDictionary();67 $converted = new WpOrg\Requests\Utility\CaseInsensitiveDictionary(); 68 68 69 69 foreach ( $this->response->headers->getAll() as $key => $value ) { … … 86 86 */ 87 87 public function set_headers( $headers ) { 88 $this->response->headers = new Requests_Response_Headers( $headers );88 $this->response->headers = new WpOrg\Requests\Response\Headers( $headers ); 89 89 } 90 90
Note: See TracChangeset
for help on using the changeset viewer.