public function handleOptionsRequest()
    {
        // Generate the "Allow" header
        $allow = '';
        foreach ($this->router->getMethodsByRoute($this->uri) as $method) {
            $allow .= strtoupper($method) . ',';
        }
        $allow = substr($allow, 0, strlen($allow) - 1);
        header('Allow: ' . $allow);
        $this->setResponse('');
    }
public function handleOptionsRequest()
    {
        // Generate the "Allow" header
        $allow = '';
        foreach ($this->router->getMethodsByRoute($this->uri) as $method) {
            $allow .= strtoupper($method) . ',';
        }
        $allow = substr($allow, 0, strlen($allow) - 1);
        header('Allow: ' . $allow);
        $this->setResponse('');
    }
public function handleOptionsRequest ( ) { // Generate the "Allow" header $ allow = '' ; foreach ( $ this -> router -> getMethodsByRoute ( $ this -> uri ) as $ method ) { $ allow .= strtoupper ( $ method ) . ',' ; } $ allow = substr ( $ allow , 0 , strlen ( $ allow ) - 1 ) ; header ( 'Allow: ' . $ allow ) ; $ this -> setResponse ( '' ) ; }
Handles an HTTP OPTIONS requests.
Returns available methods for the current route.

@return void.
Handles an HTTP OPTIONS requests . Returns available methods for the current route .