public function setAccessControlAllowMethods($methods)
    {
        if (is_array($methods)) {
            $methods = implode(', ', $methods);
        }

        $this->setHeader('Access-Control-Allow-Methods', (string) $methods);

        return $this;
    }
public function setAccessControlAllowMethods($methods)
    {
        if (is_array($methods)) {
            $methods = implode(', ', $methods);
        }

        $this->setHeader('Access-Control-Allow-Methods', (string) $methods);

        return $this;
    }
public function setAccessControlAllowMethods ( $ methods ) { if ( is_array ( $ methods ) ) { $ methods = implode ( ', ' , $ methods ) ; } $ this -> setHeader ( 'Access-Control-Allow-Methods' , ( string ) $ methods ) ; return $ this ; }
Set "Access-Control-Allow-Methods" header line.

@param string|string[] $methods

@author Seven Du <shiweidu@outlook.com>
Set Access - Control - Allow - Methods header line .