public function Request::getContentType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getContentType()
Gets the format associated with the request.
Return value
string|null The format (null if no content type is present)
File
- vendor/
symfony/ http-foundation/ Request.php, line 1396
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function getContentType() {
return $this
->getFormat($this->headers
->get('CONTENT_TYPE'));
}