class HttpMethodBypass implements Bypass

Allows to bypass requests of a particular HTTP method

Methods

__construct($methods)

Initialize the bypass with HTTP methods

string[]
getMethods()

Returns the list of methods

addMethods(string[] $methods)

Add new HTTP methods to the list

bool
checkRequestForBypass(HTTPRequest $request)

Returns true if the current process is running in CLI mode

Details

at line 24
__construct($methods)

Initialize the bypass with HTTP methods

Parameters

$methods

at line 34
string[] getMethods()

Returns the list of methods

Return Value

string[]

at line 46
addMethods(string[] $methods)

Add new HTTP methods to the list

Parameters

string[] $methods return $this

at line 77
bool checkRequestForBypass(HTTPRequest $request)

Returns true if the current process is running in CLI mode

Parameters

HTTPRequest $request

Return Value

bool True if we can bypass, False if the confirmation is required