DefaultPolicy::preprocess PHP Method

preprocess() public method

This may involve extracting information and transforming values. For example, Transforming the HTTP method from POST to PUT based on a POSTed field.
public preprocess ( Request &$request ) : Request
$request Request
return Request The refined Request.
    public function preprocess(Request &$request)
    {
        $this->getHttpMethodFromPost($request);
        $this->forceFormatFromResourceString($request);
        return $request;
    }