src/Weew/HttpClient/Drivers/Curl/RequestBuilder.php
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);
        }
    }
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);
        }
    }
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 ) ; } }
Send request content.
Send request content .