| @@ 455-460 (lines=6) @@ | ||
| 452 | return $this; |
|
| 453 | } |
|
| 454 | ||
| 455 | if ($this->bodyFormat == 'json') { |
|
| 456 | $this->option('json', $payload); |
|
| 457 | $this->removeOptions(['body', 'payload']); |
|
| 458 | ||
| 459 | return $this; |
|
| 460 | } |
|
| 461 | ||
| 462 | if ($this->bodyFormat == 'multipart') { |
|
| 463 | $formData = new FormDataPart($payload); |
|
| @@ 472-477 (lines=6) @@ | ||
| 469 | return $this; |
|
| 470 | } |
|
| 471 | ||
| 472 | if ($this->bodyFormat == 'form_params') { |
|
| 473 | $this->option('body', $payload); |
|
| 474 | $this->removeOptions(['json', 'payload']); |
|
| 475 | ||
| 476 | return $this; |
|
| 477 | } |
|
| 478 | ||
| 479 | if (is_string($payload) |
|
| 480 | || is_resource($payload) |
|