Ixudra\Curl\Builder::withContentType PHP Метод

withContentType() публичный Метод

Add a content type HTTP header to the request
public withContentType ( string $contentType ) : Builder
$contentType string The content type of the file you would like to download
Результат Builder
    public function withContentType($contentType)
    {
        return $this->withHeader('Content-Type: ' . $contentType)->withHeader('Connection: Keep-Alive');
    }