HttpResponse::getContentType
(PECL pecl_http >= 0.10.0)
HttpResponse::getContentType — Consultar Content-Type
Descripción
static
string HttpResponse::getContentType
( void
)
Consulta el valor en uso de la cabecera Content-Type.
Valores devueltos
Devuelve un string con el valor en uso de la cabecera Content-Type.
Ver también
- HttpResponse::getContentDisposition() - Consultar Content-Disposition
- HttpResponse::setContentDisposition() - Establecer Content-Disposition
- HttpResponse::setContentType() - Establecer la cabecera Content-Type
- HttpResponse::guessContentType() - Averiguar tipo de contenido