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