kernel/private/rest/classes/request/http_parser.php
File containing the ezpRestHttpRequestParser class
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\ezpRestHttpRequestParser
Custom request parser which creates instances of ezpRestRequest.
The main difference is that GET and POST data is protected from potential cookie pollution. And each category of variable has its own silo, to prevent one from overwriting another.
- Parent(s)
- \ezcMvcHttpRequestParser
Properties
Methods


createRequestObject(
)
:
\ezpRestRequest
Overload createRequestObject() to make sure ezpRestRequest is created.
Type | Description |
---|---|
\ezpRestRequest |


fillContentVariables(
)
:
array
Extract variables related to content from GET
Type | Description |
---|---|
array |


fillVariables(
)
:
array
Extract variables to be used internally from GET
Type | Description |
---|---|
array |


processProtocolOverride(
)
:
void
Adds support for using POST for PUT and DELETE for legacy browsers that does not support these.
If a post param "_method" is set to either PUT or DELETE, then ->protocol is changed to that. ( original protocol is kept on ->originalProtocol param ) Post is used as this is only meant for forms in legacy browsers.


processStandardHeaders(
)
:
void
Overloads parent::processStandardHeaders() to also call processEncryption()