class HttpMethodBypass implements Bypass (View source)

Allows to bypass requests of a particular HTTP method

Methods

public
__construct(string[] ...$methods)

Initialize the bypass with HTTP methods

public
string[]
getMethods()

Returns the list of methods

public
addMethods(string[] ...$methods)

Add new HTTP methods to the list

public
bool
checkRequestForBypass(HTTPRequest $request)

Returns true if the current process is running in CLI mode

Details

__construct(string[] ...$methods)

Initialize the bypass with HTTP methods

Parameters

string[] ...$methods

string[] getMethods()

Returns the list of methods

Return Value

string[]

addMethods(string[] ...$methods)

Add new HTTP methods to the list

Parameters

string[] ...$methods

return $this

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