Changeset 58385
- Timestamp:
- 06/11/2024 07:12:57 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r58384 r58385 28 28 29 29 /** 30 * Retrieve the raw response from a safe HTTP request.30 * Retrieves the raw response from a safe HTTP request. 31 31 * 32 32 * This function is ideal when the HTTP request is being made to an arbitrary … … 54 54 55 55 /** 56 * Retrieve the raw response from a safe HTTP request using the GET method.56 * Retrieves the raw response from a safe HTTP request using the GET method. 57 57 * 58 58 * This function is ideal when the HTTP request is being made to an arbitrary … … 80 80 81 81 /** 82 * Retrieve the raw response from a safe HTTP request using the POST method.82 * Retrieves the raw response from a safe HTTP request using the POST method. 83 83 * 84 84 * This function is ideal when the HTTP request is being made to an arbitrary … … 106 106 107 107 /** 108 * Retrieve the raw response from a safe HTTP request using the HEAD method.108 * Retrieves the raw response from a safe HTTP request using the HEAD method. 109 109 * 110 110 * This function is ideal when the HTTP request is being made to an arbitrary … … 222 222 223 223 /** 224 * Retrieve only the headers from the raw response.224 * Retrieves only the headers from the raw response. 225 225 * 226 226 * @since 2.7.0 … … 242 242 243 243 /** 244 * Retrieve a single header by name from the raw response.244 * Retrieves a single header by name from the raw response. 245 245 * 246 246 * @since 2.7.0 … … 264 264 265 265 /** 266 * Retrieve only the response code from the raw response.266 * Retrieves only the response code from the raw response. 267 267 * 268 268 * Will return an empty string if incorrect parameter value is given. … … 282 282 283 283 /** 284 * Retrieve only the response message from the raw response.284 * Retrieves only the response message from the raw response. 285 285 * 286 286 * Will return an empty string if incorrect parameter value is given. … … 300 300 301 301 /** 302 * Retrieve only the body from the raw response.302 * Retrieves only the body from the raw response. 303 303 * 304 304 * @since 2.7.0 … … 316 316 317 317 /** 318 * Retrieve only the cookies from the raw response.318 * Retrieves only the cookies from the raw response. 319 319 * 320 320 * @since 4.4.0 … … 333 333 334 334 /** 335 * Retrieve a single cookie by name from the raw response.335 * Retrieves a single cookie by name from the raw response. 336 336 * 337 337 * @since 4.4.0 … … 359 359 360 360 /** 361 * Retrieve a single cookie's value by name from the raw response.361 * Retrieves a single cookie's value by name from the raw response. 362 362 * 363 363 * @since 4.4.0 … … 412 412 413 413 /** 414 * Get the HTTP Origin of the current request.414 * Gets the HTTP Origin of the current request. 415 415 * 416 416 * @since 3.4.0 … … 425 425 426 426 /** 427 * Change the origin of an HTTP request.427 * Changes the origin of an HTTP request. 428 428 * 429 429 * @since 3.4.0 … … 435 435 436 436 /** 437 * Retrieve list of allowed HTTP origins.437 * Retrieves list of allowed HTTP origins. 438 438 * 439 439 * @since 3.4.0 … … 456 456 457 457 /** 458 * Change the origin types allowed for HTTP requests.458 * Changes the origin types allowed for HTTP requests. 459 459 * 460 460 * @since 3.4.0 … … 492 492 493 493 /** 494 * Change the allowed HTTP origin result.494 * Changes the allowed HTTP origin result. 495 495 * 496 496 * @since 3.4.0 … … 503 503 504 504 /** 505 * Send Access-Control-Allow-Origin and related headers if the current request505 * Sends Access-Control-Allow-Origin and related headers if the current request 506 506 * is from an allowed origin. 507 507 * … … 536 536 537 537 /** 538 * Validate a URL for safe use in the HTTP API.538 * Validates a URL for safe use in the HTTP API. 539 539 * 540 540 * Examples of URLs that are considered unsafe: … … 600 600 // If host appears local, reject unless specifically allowed. 601 601 /** 602 * Check if HTTP request is external or not.602 * Checks if HTTP request is external or not. 603 603 * 604 604 * Allows to change and allow external requests for the HTTP request. … … 647 647 648 648 /** 649 * Mark allowed redirect hosts safe for HTTP requests as well.649 * Marks allowed redirect hosts safe for HTTP requests as well. 650 650 * 651 651 * Attached to the {@see 'http_request_host_is_external'} filter. … … 748 748 749 749 /** 750 * Retrieve a specific component from a parsed URL array.750 * Retrieves a specific component from a parsed URL array. 751 751 * 752 752 * @internal … … 780 780 781 781 /** 782 * Translate a PHP_URL_* constant to the named array keys PHP uses.782 * Translates a PHP_URL_* constant to the named array keys PHP uses. 783 783 * 784 784 * @internal
Note: See TracChangeset
for help on using the changeset viewer.