Njasm\Soundcloud\Request\Request::getBodyContent PHP 메소드

getBodyContent() 보호된 메소드

protected getBodyContent ( )
    protected function getBodyContent()
    {
        if (in_array('Content-Type: application/json', $this->options[CURLOPT_HTTPHEADER])) {
            return json_encode($this->resource->getParams());
        }
        if (in_array('Content-Type: application/x-www-form-urlencoded', $this->options[CURLOPT_HTTPHEADER])) {
            return http_build_query($this->resource->getParams());
        }
        return $this->resource->getParams();
    }