http_send_content_type
(PECL pecl_http >= 0.10.0)
http_send_content_type — Content-Type を送信する
説明
bool http_send_content_type
([ string $content_type = "application/x-octetstream"
] )
エンティティの Content-Type を送信します。
注意: この関数は、 http_send_data() や http_send_file() そして http_send_stream() と組み合わせて使用することを想定しています。
パラメータ
- content_type
-
content type (primary/secondary)。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
エラー / 例外
content_type がプライマリパートおよびセカンダリパートを含んでいない場合に E_WARNING を発生させます。
参考
- http_send_data() - 任意のデータを送信する
- http_send_file() - ファイルを送信する
- http_send_stream() - ストリームを送信する
- PHP 5.1.0 以降を使用している場合は HttpResponse クラス
http_send_content_type
There are no user contributed notes for this page.
