Class Message
Base class for other HTTP requests/responses
Defines some common helper methods, constants and properties.
Namespace: Cake\Http\Client
Constants
-
stringMETHOD_DELETE'DELETE'
HTTP DELETE method
-
stringMETHOD_GET'GET'
HTTP GET method
-
stringMETHOD_HEAD'HEAD'
HTTP HEAD method
-
stringMETHOD_OPTIONS'OPTIONS'
HTTP OPTIONS method
-
stringMETHOD_PATCH'PATCH'
HTTP PATCH method
-
stringMETHOD_POST'POST'
HTTP POST method
-
stringMETHOD_PUT'PUT'
HTTP PUT method
-
stringMETHOD_TRACE'TRACE'
HTTP TRACE method
-
intSTATUS_ACCEPTED202
HTTP 202 code
-
intSTATUS_CREATED201
HTTP 201 code
-
intSTATUS_FOUND302
HTTP 302 code
-
intSTATUS_MOVED_PERMANENTLY301
HTTP 301 code
-
intSTATUS_NON_AUTHORITATIVE_INFORMATION203
HTTP 203 code
-
intSTATUS_NO_CONTENT204
HTTP 204 code
-
intSTATUS_OK200
HTTP 200 code
-
intSTATUS_PERMANENT_REDIRECT308
HTTP 308 code
-
intSTATUS_SEE_OTHER303
HTTP 303 code
-
intSTATUS_TEMPORARY_REDIRECT307
HTTP 307 code
Property Summary
- $_cookies protected
arrayThe array of cookies in the response.
Method Summary
-
cookies() public
Get all cookies
Method Detail
cookies() public
cookies(): array
Get all cookies
Returns
arrayProperty Detail
$_cookies protected
The array of cookies in the response.
Type
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/4.4/class-Cake.Http.Client.Message.html