Method | Description | |
---|---|---|
fixPath ( string $path ) : string | helper function to fix paths '//' or '/./' or '/foo/. | |
getMimeType ( Psr\Http\Message\ResponseInterface $response ) : string | Return the mime type. | |
getOutput ( integer $level ) : string | Return the output buffer. | |
hashEquals ( string $a, string $b ) : boolean | Very short timing attack safe string comparison for PHP < 5.6 http://php.net/manual/en/function.hash-equals.php#118384. | |
isAjax ( Psr\Http\Message\RequestInterface $request ) : boolean | Check whether a request is or not ajax. | |
isPost ( Psr\Http\Message\RequestInterface $request ) : boolean | Check if a request is post or any similar method. | |
isRedirect ( Psr\Http\Message\ResponseInterface $response ) : boolean | Check whether a response is a redirection. | |
joinPath ( ) : string | Join several pieces into a path. |
public static getMimeType ( Psr\Http\Message\ResponseInterface $response ) : string | ||
$response | Psr\Http\Message\ResponseInterface | |
return | string |
public static isRedirect ( Psr\Http\Message\ResponseInterface $response ) : boolean | ||
$response | Psr\Http\Message\ResponseInterface | |
return | boolean |