protected function setContent() {
        $body = null;

        if ($this->request->hasContent()) {
            $body = $this->request->getContent();
        }

        if ($body !== null) {
            $this->resource->setOption(CURLOPT_POST, true);
            $this->resource->setOption(CURLOPT_POSTFIELDS, $body);
        }
    }