phasync
MultipartStream / getContentType

Method

MultipartStream::getContentType

Return the Content-Type header value, multipart/form-data with this body's boundary.

Description#

public MultipartStream::getContentType(): string

Return values#

string

Examples#

Example 1
$body = new MultipartStream(['a' => '1'], 'my-boundary');
echo $body->getContentType(); // multipart/form-data; boundary=my-boundary

See also#