Lines Matching full:body
103 $body = json_encode($input);
104 if ($body === false) {
116 list($statusCode, $contentType, $body) = $request->post($body);
121 $body,
131 list($statusCode, $contentType, $body) = $request->get();
136 $body,
175 * @param string $body the response body
193 $body, argument
198 $this->handle4xx($statusCode, $contentType, $body, $service, $path);
205 return $this->handleSuccess($body, $service);
243 * @param string $body the response body
255 $body, argument
259 if (strlen($body) === 0) {
261 "Received a $statusCode error for $service with no body",
269 'the following body: ' . $body,
275 $message = json_decode($body, true);
280 . $this->jsonErrorDescription() . ' Body: ' . $body,
289 'specify code or error keys: ' . $body,
399 * @param string $body the successful request body
402 * @throws WebServiceException if the request body cannot be decoded as
405 * @return array the decoded request body
407 private function handleSuccess($body, $service) argument
409 if (strlen($body) === 0) {
412 'receive a HTTP body.'
416 $decodedContent = json_decode($body, true);
421 . $this->jsonErrorDescription() . ' Body: ' . $body