code: 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;
      }
docs: Get Request
  
  @return Request