文字

HttpResponse::getContentType

(PECL pecl_http >= 0.10.0)

HttpResponse::getContentTypeGet content type

说明

static string HttpResponse::getContentType ( void )

Get current Content-Type header setting.

返回值

Returns the currently set content type as string.

参见

  • HttpResponse::getContentDisposition() - Get content disposition
  • HttpResponse::setContentDisposition() - Set content disposition
  • HttpResponse::setContentType() - Set content type
  • HttpResponse::guessContentType() - Guess content type
上一篇: 下一篇: