Method
MultipartStream::getContentType
Return the Content-Type header value, multipart/form-data with this body's boundary.
Description#
public MultipartStream::getContentType(): stringReturn values#
string
Examples#
$body = new MultipartStream(['a' => '1'], 'my-boundary');
echo $body->getContentType(); // multipart/form-data; boundary=my-boundarySee also#
MultipartStreamInterface::getContentTypeReturn the value of theContent-Typeheader, with the boundary parameter.