Class Request
Represents an HTTP request.
-
WonderPush\Obj\BaseObject
implements
WonderPush\Util\JsonSerializable
-
┗
WonderPush\Net\Request
Methods summary
public
getMethod( void )
: string
The HTTP method.
Returns
string
One of the constants of this class.
public
setMethod( string $method
)
: WonderPush\Net\Request
Set the HTTP method.
Parameters
$method
- One of the constants of this class.
Returns
public
getRoot( void )
: string
The scheme, host, port and potential path prefix of the request.
The scheme, host, port and potential path prefix of the request.
Should not end with a slash.
Returns
string
public
setRoot( string $root
)
:
Set the scheme, host, port and potential path prefix of the request.
Set the scheme, host, port and potential path prefix of the request.
Should not end with a slash.
Parameters
Returns
$this
public
getPath( void )
: string
The HTTP path.
Should start with a slash.
Returns
string
public
setPath( string $path
)
:
Set the HTTP path.
Should start with a slash.
Parameters
Returns
$this
public
getQsParams( void )
: mixed[]
The query string parameters.
The query string parameters.
These parameters will not be promoted to body parameters.
Returns
mixed[]
public
setQsParams( mixed[] $qsParams
)
:
Set the query string parameters.
Set the query string parameters.
These parameters will not be promoted to body parameters.
Parameters
Returns
$this
public
getParams( void )
: mixed[]
The body parameters.
These parameters may be promoted to query string parameters, depending on the HTTP method used.
Returns
mixed[]
public
setParams( mixed[] $params
)
:
Set the body parameters.
These parameters may be promoted to query string parameters, depending on the HTTP method used.
Parameters
Returns
$this
__construct()
,
__toString()
,
_new()
,
clearAllFields()
,
deepClone()
,
jsonSerialize()
,
toArray()
,
toData()
Constants summary