Methods
Allow PHP casting of this object
__toString() : string
Inherited
inherited_from |
\Zend\Http\AbstractMessage::__toString() |
Returns
string
A factory that produces a Request object from a well-formed Http Request string
fromString(string $string, bool $allowCustomMethods) : \Zend\Http\Request
Parameters
$string
string
$allowCustomMethods
bool
Exceptions
Returns
getAllowCustomMethods()
getAllowCustomMethods() : boolean
Get message content
getContent() : mixed
Inherited
inherited_from |
\Zend\Stdlib\Message::getContent() |
inherited_from |
\Zend\Http\AbstractMessage::getContent() |
Returns
mixed
Return the Cookie header, this is the same as calling $request->getHeaders()->get('Cookie');
getCookie() : \Zend\Http\Header\Cookie | bool
convenience |
$request->getHeaders()->get('Cookie'); |
Returns
Return the parameter container responsible for file parameters or a single file.
getFiles(string | null $name, mixed | null $default) : \Zend\Stdlib\ParametersInterface | mixed
Parameters
$name
stringnull
Parameter name to retrieve, or null to get the whole container.
$default
mixednull
Default value to use when the parameter is missing.
Returns
Return the method for this request
getMethod() : string
Return the parameter container responsible for post parameters or a single post parameter.
getPost(string | null $name, mixed | null $default) : \Zend\Stdlib\ParametersInterface | mixed
Parameters
$name
stringnull
Parameter name to retrieve, or null to get the whole container.
$default
mixednull
Default value to use when the parameter is missing.
Returns
Return the parameter container responsible for query parameters or a single query parameter
getQuery(string | null $name, mixed | null $default) : \Zend\Stdlib\ParametersInterface | mixed
Parameters
$name
stringnull
Parameter name to retrieve, or null to get the whole container.
$default
mixednull
Default value to use when the parameter is missing.
Returns
Return the URI for this request object as a string
getUriString() : string
Return the HTTP version for this request
getVersion() : string
Inherited
inherited_from |
\Zend\Http\AbstractMessage::getVersion() |
Returns
string
Is this a CONNECT method request?
isConnect() : bool
Is this a DELETE method request?
isDelete() : bool
Is this a Flash request?
isFlashRequest() : bool
Is this a GET method request?
isGet() : bool
Is this a HEAD method request?
isHead() : bool
Is this an OPTIONS method request?
isOptions() : bool
Is this a PATCH method request?
isPatch() : bool
Is this a POST method request?
isPost() : bool
Is this a PROPFIND method request?
isPropFind() : bool
Is this a PUT method request?
isPut() : bool
Is this a TRACE method request?
isTrace() : bool
Is the request a Javascript XMLHttpRequest?
isXmlHttpRequest() : bool
Should work with Prototype/Script.aculo.us, possibly others.
Returns
bool
Return the formatted request line (first line) for this http request
renderRequestLine() : string
setAllowCustomMethods()
setAllowCustomMethods(boolean $strictMethods)
Parameters
$strictMethods
boolean
Set message content
setContent(mixed $value) : \Zend\Stdlib\Message
Inherited
inherited_from |
\Zend\Stdlib\Message::setContent() |
inherited_from |
\Zend\Http\AbstractMessage::setContent() |
Parameters
$value
mixed
Returns
Provide an alternate Parameter Container implementation for file parameters in this object,
(this is NOT the primary API for value setting, for that see getFiles())
setFiles(\Zend\Stdlib\ParametersInterface $files) : \Zend\Http\Request
Set the method for this request
setMethod(string $method) : \Zend\Http\Request
Parameters
$method
string
Exceptions
Returns
Provide an alternate Parameter Container implementation for post parameters in this object,
(this is NOT the primary API for value setting, for that see getPost())
setPost(\Zend\Stdlib\ParametersInterface $post) : \Zend\Http\Request
Provide an alternate Parameter Container implementation for query parameters in this object,
(this is NOT the primary API for value setting, for that see getQuery())
setQuery(\Zend\Stdlib\ParametersInterface $query) : \Zend\Http\Request
Set the URI/URL for this request, this can be a string or an instance of Zend\Uri\Http
setUri(string | \Zend\Uri\Http $uri) : \Zend\Http\Request
Parameters
Exceptions
Returns
Set the HTTP version for this object, one of 1.0 or 1.1
(AbstractMessage::VERSION_10, AbstractMessage::VERSION_11)
setVersion(string $version) : \Zend\Http\AbstractMessage
Inherited
inherited_from |
\Zend\Http\AbstractMessage::setVersion() |
Parameters
$version
string
(Must be 1.0 or 1.1)
Exceptions
Returns
toString()
toString() : string
Properties
$allowCustomMethods
$allowCustomMethods : bool
$content
$content : string
Inherited
inherited_from |
\Zend\Stdlib\Message::$$content |
inherited_from |
\Zend\Http\AbstractMessage::$$content |
$version
$version : string
Inherited
inherited_from |
\Zend\Http\AbstractMessage::$$version |
Constants
METHOD_CONNECT
METHOD_CONNECT
METHOD_DELETE
METHOD_DELETE
METHOD_OPTIONS
METHOD_OPTIONS
METHOD_PATCH
METHOD_PATCH
METHOD_PROPFIND
METHOD_PROPFIND
METHOD_TRACE
METHOD_TRACE
VERSION_10
VERSION_10
Inherited
inherited_from |
\Zend\Http\AbstractMessage::VERSION_10 |
VERSION_11
VERSION_11
Inherited
inherited_from |
\Zend\Http\AbstractMessage::VERSION_11 |