Fr3nch13/CakePHP Utilities

Message
in package

Base class for other HTTP requests/responses

Defines some common helper methods, constants and properties.

Table of Contents

Constants

METHOD_DELETE  = 'DELETE'
HTTP DELETE method
METHOD_GET  = 'GET'
HTTP GET method
METHOD_HEAD  = 'HEAD'
HTTP HEAD method
METHOD_OPTIONS  = 'OPTIONS'
HTTP OPTIONS method
METHOD_PATCH  = 'PATCH'
HTTP PATCH method
METHOD_POST  = 'POST'
HTTP POST method
METHOD_PUT  = 'PUT'
HTTP PUT method
METHOD_TRACE  = 'TRACE'
HTTP TRACE method
STATUS_ACCEPTED  = 202
HTTP 202 code
STATUS_CREATED  = 201
HTTP 201 code
STATUS_FOUND  = 302
HTTP 302 code
STATUS_MOVED_PERMANENTLY  = 301
HTTP 301 code
STATUS_NO_CONTENT  = 204
HTTP 204 code
STATUS_NON_AUTHORITATIVE_INFORMATION  = 203
HTTP 203 code
STATUS_OK  = 200
HTTP 200 code
STATUS_PERMANENT_REDIRECT  = 308
HTTP 308 code
STATUS_SEE_OTHER  = 303
HTTP 303 code
STATUS_TEMPORARY_REDIRECT  = 307
HTTP 307 code

Properties

$_cookies  : array<string|int, mixed>
The array of cookies in the response.

Methods

cookies()  : array<string|int, mixed>
Get all cookies

Constants

METHOD_DELETE

HTTP DELETE method

public string METHOD_DELETE = 'DELETE'

METHOD_GET

HTTP GET method

public string METHOD_GET = 'GET'

METHOD_HEAD

HTTP HEAD method

public string METHOD_HEAD = 'HEAD'

METHOD_OPTIONS

HTTP OPTIONS method

public string METHOD_OPTIONS = 'OPTIONS'

METHOD_PATCH

HTTP PATCH method

public string METHOD_PATCH = 'PATCH'

METHOD_POST

HTTP POST method

public string METHOD_POST = 'POST'

METHOD_PUT

HTTP PUT method

public string METHOD_PUT = 'PUT'

METHOD_TRACE

HTTP TRACE method

public string METHOD_TRACE = 'TRACE'

STATUS_ACCEPTED

HTTP 202 code

public int STATUS_ACCEPTED = 202

STATUS_CREATED

HTTP 201 code

public int STATUS_CREATED = 201

STATUS_FOUND

HTTP 302 code

public int STATUS_FOUND = 302

STATUS_MOVED_PERMANENTLY

HTTP 301 code

public int STATUS_MOVED_PERMANENTLY = 301

STATUS_NO_CONTENT

HTTP 204 code

public int STATUS_NO_CONTENT = 204

STATUS_NON_AUTHORITATIVE_INFORMATION

HTTP 203 code

public int STATUS_NON_AUTHORITATIVE_INFORMATION = 203

STATUS_OK

HTTP 200 code

public int STATUS_OK = 200

STATUS_PERMANENT_REDIRECT

HTTP 308 code

public int STATUS_PERMANENT_REDIRECT = 308

STATUS_SEE_OTHER

HTTP 303 code

public int STATUS_SEE_OTHER = 303

STATUS_TEMPORARY_REDIRECT

HTTP 307 code

public int STATUS_TEMPORARY_REDIRECT = 307

Properties

$_cookies

The array of cookies in the response.

protected array<string|int, mixed> $_cookies = []

Methods

cookies()

Get all cookies

public cookies() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results