Ixudra\Curl\Builder::withContentType PHP Method

withContentType() public method

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
return Builder
    public function withContentType($contentType)
    {
        return $this->withHeader('Content-Type: ' . $contentType)->withHeader('Connection: Keep-Alive');
    }