StringContent
extends BinaryContent
in package
FinalYes
文字列本文データ。
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(string $string[, string $mime = Text::EMPTY ][, Encoding $encoding = null ]) : mixed
Parameters
- $string : string
- $mime : string = Text::EMPTY
- $encoding : Encoding = null
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