Class Utils
Utils class with help functions
Namespace: OwsProxy3\CoreBundle\Component
Author: Paul Schmidt
Located at OwsProxy3/CoreBundle/Component/Utils.php
Author: Paul Schmidt
Located at OwsProxy3/CoreBundle/Component/Utils.php
Methods summary
public static
array
|
#
getParams( Symfony\Component\HttpFoundation\Request $request, string $method = null )
Returns the array with parameters. |
public static
string
|
#
getParamValue( Symfony\Component\HttpFoundation\Request $request, string $name, boolean $method = null, string $ignoreCase = false )
Returns the parameter value from request |
public static
array
|
#
getAllParams( Symfony\Component\HttpFoundation\Request $request )
Returns the associative array with all parameters ("GET"=> array(),"POST"=>array(),"CONTENT"=>value). |
public static
string|null
|
#
getParamValueFromAll( Symfony\Component\HttpFoundation\Request $request, string $name, boolean $ignoreCase = false )
Returns the parameter value |
public static
array
|
#
getHeadersFromRequest( Symfony\Component\HttpFoundation\Request $request )
Returns the headers from Request |
public static
array
|
#
getHeadersFromBrowserResponse( Buzz\Message\MessageInterface $browserResponse )
Returns the headers from BrowserResponse |
public static
|
#
setHeadersFromBrowserResponse( Symfony\Component\HttpFoundation\Response $response, Buzz\Message\MessageInterface $browserResponse )
Sets the headers from proxy's browser response into proxy response |
public static
array
|
#
prepareHeadersForRequest( array $headers, array $blackList, array $whiteList )
Prepares the HTTP headers |
Magic methods summary
Properties summary
public static
string
|
$METHOD_GET
the identifier for HTTP GET |
# "GET" |
public static
string
|
$METHOD_POST
the identifier for HTTP POST |
# "POST" |
public static
string
|
$PARAMETER_URL
the identifier for parameter "url" |
# "url" |
public static
string
|
$CONTENT
the identifier for HTTP POST content |
# "CONTENT" |