@@ 56-59 (lines=4) @@ | ||
53 | case 'get': |
|
54 | $result = $this->client->get($url, compact('headers')); |
|
55 | break; |
|
56 | case 'post': |
|
57 | $headers += ['Content-Type'=>'application/json']; |
|
58 | $result = $this->client->post($url, compact('headers','body')); |
|
59 | break; |
|
60 | case 'delete': |
|
61 | $headers += ['Content-Type'=>'application/json']; |
|
62 | $result = $this->client->delete($url, compact('headers','body')); |
|
@@ 60-63 (lines=4) @@ | ||
57 | $headers += ['Content-Type'=>'application/json']; |
|
58 | $result = $this->client->post($url, compact('headers','body')); |
|
59 | break; |
|
60 | case 'delete': |
|
61 | $headers += ['Content-Type'=>'application/json']; |
|
62 | $result = $this->client->delete($url, compact('headers','body')); |
|
63 | break; |
|
64 | case 'put': |
|
65 | $headers += ['Content-Type'=>'application/json']; |
|
66 | $result = $this->client->put($url, compact('headers','body')); |
|
@@ 64-67 (lines=4) @@ | ||
61 | $headers += ['Content-Type'=>'application/json']; |
|
62 | $result = $this->client->delete($url, compact('headers','body')); |
|
63 | break; |
|
64 | case 'put': |
|
65 | $headers += ['Content-Type'=>'application/json']; |
|
66 | $result = $this->client->put($url, compact('headers','body')); |
|
67 | break; |
|
68 | default: |
|
69 | $result = null; |
|
70 | break; |