BinaryContent
extends StaticContentBase
in package
バイナリ本文データ。
Table of Contents
Properties
Methods
- __construct() : mixed
- toBody() : Binary
- toHeader() : HttpHeader
- createContentTypeHeader() : HttpHeader
Properties
$body read-only
protected
Binary
$body
$mime
private
string
$mime
= Text::EMPTY
Methods
__construct()
public
__construct(Binary $binary[, string $mime = Text::EMPTY ]) : mixed
Parameters
- $binary : Binary
- $mime : string = Text::EMPTY
toBody()
public
toBody() : Binary
Return values
BinarytoHeader()
public
toHeader() : HttpHeader
Return values
HttpHeadercreateContentTypeHeader()
protected
createContentTypeHeader(string $mime[, Encoding|null $encoding = null ]) : HttpHeader
Parameters
- $mime : string
- $encoding : Encoding|null = null