public function options()
    {
        $request = new HTTP\Request('OPTIONS', $this->getAbsoluteUrl(''));
        $response = $this->send($request);

        $dav = $response->getHeader('Dav');
        if (!$dav) {
            return [];
        }

        $features = explode(',', $dav);
        foreach ($features as &$v) {
            $v = trim($v);
        }

        return $features;
    }
public function options()
    {
        $request = new HTTP\Request('OPTIONS', $this->getAbsoluteUrl(''));
        $response = $this->send($request);

        $dav = $response->getHeader('Dav');
        if (!$dav) {
            return [];
        }

        $features = explode(',', $dav);
        foreach ($features as &$v) {
            $v = trim($v);
        }

        return $features;
    }
public function options ( ) { $ request = new HTTP \ Request ( 'OPTIONS' , $ this -> getAbsoluteUrl ( '' ) ) ; $ response = $ this -> send ( $ request ) ; $ dav = $ response -> getHeader ( 'Dav' ) ; if ( ! $ dav ) { return [ ] ; } $ features = explode ( ',' , $ dav ) ; foreach ( $ features as & $ v ) { $ v = trim ( $ v ) ; } return $ features ; }
Performs an HTTP options request.

This method returns all the features from the 'DAV:' header as an array.
If there was no DAV header, or no contents this method will return an
empty array.

@return array
Performs an HTTP options request .