1 # http\Message\Body http\Message\Body::addPart(http\Message $part)
3 Add a part to a multipart body.
12 * http\Message\Body, self.
16 * http\Exception\InvalidArgumentException
17 * http\Exception\RuntimeException
22 $multi = new http\Message\Body;
23 $multi->addPart(new http\Message("Content-type: text/plain\n\nHello part 1!"));
24 $multi->addPart(new http\Message("Content-type: text/plain\n\nHello part 2!"));
32 Content-Type: text/plain
37 Content-Type: text/plain