Base class for other HTTP requests/responses
Defines some common helper methods, constants and properties.
string
METHOD_DELETE 'DELETE' string
METHOD_GET 'GET' string
METHOD_HEAD 'HEAD' string
METHOD_OPTIONS 'OPTIONS' string
METHOD_PATCH 'PATCH' string
METHOD_POST 'POST' string
METHOD_PUT 'PUT' string
METHOD_TRACE 'TRACE' integer
STATUS_ACCEPTED 202 integer
STATUS_CREATED 201 integer
STATUS_FOUND 302 integer
STATUS_MOVED_PERMANENTLY 301 integer
STATUS_NON_AUTHORITATIVE_INFORMATION 203 integer
STATUS_NO_CONTENT 204 integer
STATUS_OK 200 integer
STATUS_SEE_OTHER 303 integer
STATUS_TEMPORARY_REDIRECT 307 $_body protected string|null$_cookies protected array$headers public arraybody( string|null $body = null )
Get/set the body for the message.
$body optional null headers( )
Get all headers
public array
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.8/class-Cake.Http.Client.Message.html