Lines Matching refs:body
64 public function setBody($body): PostData
66 if (isset($body) !== true) {
69 if (is_array($body) === true || $body instanceof Traversable) {
70 foreach ($body as $item) {
71 $this->body .= $this->serializer->serialize($item) . "\n";
73 } elseif (is_string($body)) {
74 $this->body = $body;
75 if (substr($body, -1) != "\n") {
76 $this->body .= "\n";