ContentType
in package
Read onlyYes
FinalYes
Table of Contents
Constants
- NAME = "Content-Type"
Properties
Methods
- create() : self
- from() : self
- HTTPヘッダ値から `ContentType` に変換。
- toValues() : array<string|int, string>
- Undocumented function
- __construct() : mixed
Constants
NAME
public
mixed
NAME
= "Content-Type"
Properties
$boundary
public
string|null
$boundary
$encoding
public
Encoding|null
$encoding
$mime
public
string
$mime
Methods
create()
public
static create(string $mime[, Encoding|null $encoding = null ]) : self
Parameters
- $mime : string
- $encoding : Encoding|null = null
Return values
selffrom()
HTTPヘッダ値から `ContentType` に変換。
public
static from(string $value) : self
Parameters
- $value : string
Return values
selftoValues()
Undocumented function
public
toValues() : array<string|int, string>
Return values
array<string|int, string>__construct()
private
__construct(string $mime, Encoding|null $encoding, string|null $boundary) : mixed
Parameters
- $mime : string
- $encoding : Encoding|null
- $boundary : string|null