HttpResponse::getContentType
(PECL pecl_http >= 0.10.0)
HttpResponse::getContentType — content type を取得する
説明
static
string HttpResponse::getContentType
( void
)
現在の Content-Type ヘッダの設定を取得します。
返り値
現在設定されている content type を文字列で返します。
参考
- HttpResponse::getContentDisposition() - content disposition を取得する
- HttpResponse::setContentDisposition() - content disposition を設定する
- HttpResponse::setContentType() - content type を設定する
- HttpResponse::guessContentType() - content type を推測する