Skip to content

Commit ede6921

Browse files
committed
Updated docs
1 parent 33f44b2 commit ede6921

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/MultipartStreamBuilder.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/**
1212
* Build your own Multipart stream. A Multipart stream is a collection of streams separated with a $bounary. This
13-
* class helps you to create a Multipart stream with stream implementations from Guzzle or Zend.
13+
* class helps you to create a Multipart stream with stream implementations from any PSR7 library.
1414
*
1515
* @author Michael Dowling and contributors to guzzlehttp/psr7
1616
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -142,7 +142,11 @@ private function prepareHeaders($name, StreamInterface $stream, $filename, array
142142
}
143143

144144
/**
145-
* Get the headers needed before transferring the content of a POST file.
145+
* Get the headers formatted for the HTTP message.
146+
*
147+
* @param array $headers
148+
*
149+
* @return string
146150
*/
147151
private function getHeaders(array $headers)
148152
{
@@ -158,9 +162,9 @@ private function getHeaders(array $headers)
158162
* Get one header by its name.
159163
*
160164
* @param array $headers
161-
* @param $key
165+
* @param string $key case insensitive
162166
*
163-
* @return mixed|null
167+
* @return string|null
164168
*/
165169
private function getHeader(array $headers, $key)
166170
{
@@ -175,6 +179,8 @@ private function getHeader(array $headers, $key)
175179
}
176180

177181
/**
182+
* Get the boundary that separates the streams.
183+
*
178184
* @return string
179185
*/
180186
public function getBoundary()

0 commit comments

Comments
 (0)