[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/Requests/ -> Response.php (summary)

HTTP response class Contains a response from Requests::request()

File Size: 122 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Requests_Response:: (3 methods):
  __construct()
  is_redirect()
  throw_for_status()


Class: Requests_Response  - X-Ref

HTTP response class

Contains a response from Requests::request()
__construct()   X-Ref
Constructor


is_redirect()   X-Ref
Is the response a redirect?

return: boolean True if redirect (3xx status), false if not.

throw_for_status($allow_redirects = true)   X-Ref
Throws an exception if the request was not successful

param: boolean $allow_redirects Set to false to throw on a 3xx as well



Generated: Thu Dec 15 01:00:02 2022 Cross-referenced by PHPXref 0.7.1