public function configure(\OtherCode\Rest\Core\Configuration $configuration = null)
    {
        if (isset($configuration)) {
            $this->configuration = $configuration;
        } else {
            $this->configuration = new \OtherCode\Rest\Core\Configuration();
        }
        $this->request->setHeaders($this->configuration->httpheader);
        return $this;
    }
public function configure(\OtherCode\Rest\Core\Configuration $configuration = null)
    {
        if (isset($configuration)) {
            $this->configuration = $configuration;
        } else {
            $this->configuration = new \OtherCode\Rest\Core\Configuration();
        }
        $this->request->setHeaders($this->configuration->httpheader);
        return $this;
    }
public function configure ( \ OtherCode \ Rest \ Core \ Configuration $ configuration = null ) { if ( isset ( $ configuration ) ) { $ this -> configuration = $ configuration ; } else { $ this -> configuration = new \ OtherCode \ Rest \ Core \ Configuration ( ) ; } $ this -> request -> setHeaders ( $ this -> configuration -> httpheader ) ; return $ this ; }
Configure main options
@param Configuration $configuration
@throws \OtherCode\Rest\Exceptions\RestException
@return $this
Configure main options