|
Lines 52-58
class HttpClient {
Link Here
|
| 52 |
|
52 |
|
| 53 |
post(params = {}) { |
53 |
post(params = {}) { |
| 54 |
const body = params.body |
54 |
const body = params.body |
| 55 |
? typeof str === "string" |
55 |
? typeof params.body === "string" |
| 56 |
? params.body |
56 |
? params.body |
| 57 |
: JSON.stringify(params.body) |
57 |
: JSON.stringify(params.body) |
| 58 |
: undefined; |
58 |
: undefined; |
|
Lines 65-71
class HttpClient {
Link Here
|
| 65 |
|
65 |
|
| 66 |
put(params = {}) { |
66 |
put(params = {}) { |
| 67 |
const body = params.body |
67 |
const body = params.body |
| 68 |
? typeof str === "string" |
68 |
? typeof params.body === "string" |
| 69 |
? params.body |
69 |
? params.body |
| 70 |
: JSON.stringify(params.body) |
70 |
: JSON.stringify(params.body) |
| 71 |
: undefined; |
71 |
: undefined; |
|
Lines 105-111
class HttpClient {
Link Here
|
| 105 |
|
105 |
|
| 106 |
patch(params = {}) { |
106 |
patch(params = {}) { |
| 107 |
const body = params.body |
107 |
const body = params.body |
| 108 |
? typeof str === "string" |
108 |
? typeof params.body === "string" |
| 109 |
? params.body |
109 |
? params.body |
| 110 |
: JSON.stringify(params.body) |
110 |
: JSON.stringify(params.body) |
| 111 |
: undefined; |
111 |
: undefined; |
| 112 |
- |
|
|