SecurityHelper
abstract class SecurityHelper (View source)
Helper functions about request safety and security.
Methods
static bool
isSecureRequest(RequestInterface $request)
Indicates if this request has been received through a secure channel.
static bool
hasSafeMethod(RequestInterface $request)
Tells if the request method is "safe", that is, it is expected to not take any other action than retrieval. This should the case with "GET" and "HEAD" requests.
Details
static bool
isSecureRequest(RequestInterface $request)
Indicates if this request has been received through a secure channel.
static bool
hasSafeMethod(RequestInterface $request)
Tells if the request method is "safe", that is, it is expected to not take any other action than retrieval. This should the case with "GET" and "HEAD" requests.