From 55a9676ceb912361513da06a24e563003a4ab52d Mon Sep 17 00:00:00 2001 From: Koala Yeung Date: Wed, 23 Dec 2020 00:11:04 +0800 Subject: [PATCH] Update MultipartStreamBuilder documentation * Added documentation for the new addData method. --- components/multipart-stream-builder.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/multipart-stream-builder.rst b/components/multipart-stream-builder.rst index 883f612..c8608ca 100644 --- a/components/multipart-stream-builder.rst +++ b/components/multipart-stream-builder.rst @@ -46,7 +46,7 @@ To build a multipart stream you may use the ``MultipartStreamBuilder``. It is no $builder ->addResource('foo', $stream) ->addResource('bar', fopen($filePath, 'r'), ['filename' => 'bar.png']) - ->addResource('baz', 'string', ['headers' => ['Content-Type' => 'text/plain']]); + ->addData('baz', ['headers' => ['Content-Type' => 'text/plain']]); $multipartStream = $builder->build(); $boundary = $builder->getBoundary();