src/Service/RestClient.php
public function getRequest()
    {
        if (empty($this->request)) {
            $headers = new Headers();
            $headers->addHeaders(
                array(
                        'Accept' => 'application/json',
                        'Content-Type' => 'application/json'
                    )
            );
            $request = parent::getRequest();
            $request->setHeaders($headers);
            $request->setMethod('POST');
        }
        return $this->request;
    }
public function getRequest()
    {
        if (empty($this->request)) {
            $headers = new Headers();
            $headers->addHeaders(
                array(
                        'Accept' => 'application/json',
                        'Content-Type' => 'application/json'
                    )
            );
            $request = parent::getRequest();
            $request->setHeaders($headers);
            $request->setMethod('POST');
        }
        return $this->request;
    }
Get Request

@return Request