Lines Matching refs:body
71 return isset($this->body) ? 'POST' : 'GET';
74 public function setBody($body): Msearch
76 if (isset($body) !== true) {
79 if (is_array($body) === true || $body instanceof Traversable) {
80 foreach ($body as $item) {
81 $this->body .= $this->serializer->serialize($item) . "\n";
83 } elseif (is_string($body)) {
84 $this->body = $body;
85 if (substr($body, -1) != "\n") {
86 $this->body .= "\n";