[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

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

File Size: 121 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: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7