@@ -44,7 +44,7 @@ public DeleteFunctionClient(Credential credential) {
4444 */
4545 public DeleteFunctionResponse doPostSend (String path , DeleteFunctionRequest requestObj ) throws RuntimeException {
4646 Map <String , String > head = new HashMap <>();
47- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
47+ head .put ("Content-Type" , "application/json " );
4848 return doPostSend (path , requestObj , head );
4949 }
5050
@@ -63,7 +63,7 @@ public DeleteFunctionResponse doPostSend(String path, DeleteFunctionRequest requ
6363 UrlPathParams urlPathParams ,
6464 Map <String , String > customHeaders ) throws RuntimeException {
6565 Map <String , String > head = new HashMap <>();
66- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
66+ head .put ("Content-Type" , "application/json " );
6767 if (customHeaders != null && !customHeaders .isEmpty ()) {
6868 head .putAll (customHeaders );
6969 }
@@ -111,7 +111,7 @@ public DeleteFunctionResponse doPostSend(String path, DeleteFunctionRequest requ
111111 */
112112 public DeleteFunctionResponse doGetSend (String path , DeleteFunctionRequest requestObj ) throws RuntimeException {
113113 Map <String , String > head = new HashMap <>();
114- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
114+ head .put ("Content-Type" , "application/json " );
115115 return doGetSend (path , requestObj , head );
116116 }
117117
@@ -144,7 +144,7 @@ public DeleteFunctionResponse doGetSend(String path, DeleteFunctionRequest reque
144144 UrlPathParams urlPathParams ,
145145 Map <String , String > customHeaders ) throws RuntimeException {
146146 Map <String , String > head = new HashMap <>();
147- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
147+ head .put ("Content-Type" , "application/json " );
148148 if (customHeaders != null && !customHeaders .isEmpty ()) {
149149 head .putAll (customHeaders );
150150 }
@@ -162,7 +162,7 @@ public DeleteFunctionResponse doGetSend(String path, DeleteFunctionRequest reque
162162 */
163163 public DeleteFunctionResponse doPutSend (String path , DeleteFunctionRequest requestObj ) throws RuntimeException {
164164 Map <String , String > head = new HashMap <>();
165- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
165+ head .put ("Content-Type" , "application/json " );
166166 return doPutSend (path , requestObj , head );
167167 }
168168
@@ -195,7 +195,7 @@ public DeleteFunctionResponse doPutSend(String path, DeleteFunctionRequest reque
195195 UrlPathParams urlPathParams ,
196196 Map <String , String > customHeaders ) throws RuntimeException {
197197 Map <String , String > head = new HashMap <>();
198- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
198+ head .put ("Content-Type" , "application/json " );
199199 if (customHeaders != null && !customHeaders .isEmpty ()) {
200200 head .putAll (customHeaders );
201201 }
@@ -213,7 +213,7 @@ public DeleteFunctionResponse doPutSend(String path, DeleteFunctionRequest reque
213213 */
214214 public DeleteFunctionResponse doDeleteSend (String path , DeleteFunctionRequest requestObj ) throws RuntimeException {
215215 Map <String , String > head = new HashMap <>();
216- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
216+ head .put ("Content-Type" , "application/json " );
217217 return doDeleteSend (path , requestObj , head );
218218 }
219219
@@ -246,7 +246,7 @@ public DeleteFunctionResponse doDeleteSend(String path, DeleteFunctionRequest re
246246 UrlPathParams urlPathParams ,
247247 Map <String , String > customHeaders ) throws RuntimeException {
248248 Map <String , String > head = new HashMap <>();
249- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
249+ head .put ("Content-Type" , "application/json " );
250250 if (customHeaders != null && !customHeaders .isEmpty ()) {
251251 head .putAll (customHeaders );
252252 }
@@ -268,7 +268,7 @@ public DeleteFunctionResponse doDeleteSend(String path, DeleteFunctionRequest re
268268 private DeleteFunctionResponse executeWithV2 (String method , String path , DeleteFunctionRequest requestObj ,
269269 Map <String , String > head , UrlPathParams urlPathParams ) throws RuntimeException {
270270 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
271- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
271+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
272272
273273 // 调用底层 V2 方法获取完整响应
274274 HttpResponseWrapper wrapper = doRpcV2 (path , requestObj , requestHeaders , method , urlPathParams );
@@ -323,7 +323,7 @@ private DeleteFunctionResponse executeWithV2(String method, String path, DeleteF
323323 */
324324 public HttpResponseWrapper doPostWithContextV2 (String path , DeleteFunctionRequest requestObj ) {
325325 Map <String , String > head = new HashMap <>();
326- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
326+ head .put ("Content-Type" , "application/json " );
327327 return doPostWithContextV2 (path , requestObj , head );
328328 }
329329
@@ -341,7 +341,7 @@ public HttpResponseWrapper doPostWithContextV2(String path, DeleteFunctionReques
341341 */
342342 public HttpResponseWrapper doPostWithContextV2 (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) {
343343 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
344- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
344+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
345345 return doRpcV2 (path , requestObj , requestHeaders , "post" , null );
346346 }
347347
@@ -358,7 +358,7 @@ public HttpResponseWrapper doPostWithContextV2(String path, DeleteFunctionReques
358358 */
359359 public HttpResponseWrapper doGetWithContextV2 (String path , DeleteFunctionRequest requestObj ) {
360360 Map <String , String > head = new HashMap <>();
361- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
361+ head .put ("Content-Type" , "application/json " );
362362 return doGetWithContextV2 (path , requestObj , head );
363363 }
364364
@@ -376,7 +376,7 @@ public HttpResponseWrapper doGetWithContextV2(String path, DeleteFunctionRequest
376376 */
377377 public HttpResponseWrapper doGetWithContextV2 (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) {
378378 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
379- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
379+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
380380 return doRpcV2 (path , requestObj , requestHeaders , "get" , null );
381381 }
382382
@@ -393,7 +393,7 @@ public HttpResponseWrapper doGetWithContextV2(String path, DeleteFunctionRequest
393393 */
394394 public HttpResponseWrapper doPutWithContextV2 (String path , DeleteFunctionRequest requestObj ) {
395395 Map <String , String > head = new HashMap <>();
396- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
396+ head .put ("Content-Type" , "application/json " );
397397 return doPutWithContextV2 (path , requestObj , head );
398398 }
399399
@@ -411,7 +411,7 @@ public HttpResponseWrapper doPutWithContextV2(String path, DeleteFunctionRequest
411411 */
412412 public HttpResponseWrapper doPutWithContextV2 (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) {
413413 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
414- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
414+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
415415 return doRpcV2 (path , requestObj , requestHeaders , "put" , null );
416416 }
417417
@@ -428,7 +428,7 @@ public HttpResponseWrapper doPutWithContextV2(String path, DeleteFunctionRequest
428428 */
429429 public HttpResponseWrapper doDeleteWithContextV2 (String path , DeleteFunctionRequest requestObj ) {
430430 Map <String , String > head = new HashMap <>();
431- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
431+ head .put ("Content-Type" , "application/json " );
432432 return doDeleteWithContextV2 (path , requestObj , head );
433433 }
434434
@@ -446,7 +446,7 @@ public HttpResponseWrapper doDeleteWithContextV2(String path, DeleteFunctionRequ
446446 */
447447 public HttpResponseWrapper doDeleteWithContextV2 (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) {
448448 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
449- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
449+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
450450 return doRpcV2 (path , requestObj , requestHeaders , "delete" , null );
451451 }
452452
@@ -460,7 +460,7 @@ public HttpResponseWrapper doDeleteWithContextV2(String path, DeleteFunctionRequ
460460 */
461461 public DeleteFunctionResponse doPost (String path , DeleteFunctionRequest requestObj ) throws Exception {
462462 Map <String , String > head = new HashMap <>();
463- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
463+ head .put ("Content-Type" , "application/json " );
464464 return doPost (path , requestObj , head );
465465 }
466466
@@ -475,7 +475,7 @@ public DeleteFunctionResponse doPost(String path, DeleteFunctionRequest requestO
475475 */
476476 public DeleteFunctionResponse doPost (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) throws Exception {
477477 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
478- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
478+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
479479 String response = doRpc (path , requestObj , requestHeaders , "post" );
480480 return JSON .parseObject (response , DeleteFunctionResponse .class );
481481 }
@@ -489,7 +489,7 @@ public DeleteFunctionResponse doPost(String path, DeleteFunctionRequest requestO
489489 */
490490 public DeleteFunctionResponse doPostRaw (String path , DeleteFunctionRequest requestObj ) throws Exception {
491491 Map <String , String > head = new HashMap <>();
492- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
492+ head .put ("Content-Type" , "application/json " );
493493 return doPostRaw (path , requestObj , head );
494494 }
495495
@@ -503,7 +503,7 @@ public DeleteFunctionResponse doPostRaw(String path, DeleteFunctionRequest reque
503503 */
504504 public DeleteFunctionResponse doPostRaw (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) throws Exception {
505505 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
506- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
506+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
507507 String response = doRpc (path , requestObj , requestHeaders , "post" );
508508 return JSON .parseObject (response , DeleteFunctionResponse .class );
509509 }
@@ -517,7 +517,7 @@ public DeleteFunctionResponse doPostRaw(String path, DeleteFunctionRequest reque
517517 */
518518 public DeleteFunctionResponse doGet (String path , DeleteFunctionRequest requestObj ) throws Exception {
519519 Map <String , String > head = new HashMap <>();
520- head .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
520+ head .putIfAbsent ("Content-Type" , "application/json " );
521521 return doGet (path , requestObj , head );
522522 }
523523
@@ -532,7 +532,7 @@ public DeleteFunctionResponse doGet(String path, DeleteFunctionRequest requestOb
532532 */
533533 public DeleteFunctionResponse doGet (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) throws Exception {
534534 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
535- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
535+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
536536 String response = doRpc (path , requestObj , requestHeaders , "get" );
537537 return JSON .parseObject (response , DeleteFunctionResponse .class );
538538 }
@@ -547,7 +547,7 @@ public DeleteFunctionResponse doGet(String path, DeleteFunctionRequest requestOb
547547 */
548548 public DeleteFunctionResponse doDelete (String path , DeleteFunctionRequest requestObj ) throws Exception {
549549 Map <String , String > head = new HashMap <>();
550- head .put ("Content-Type" , "application/x-www-form-urlencoded " );
550+ head .put ("Content-Type" , "application/json " );
551551 return doDelete (path , requestObj , head );
552552 }
553553
@@ -562,7 +562,7 @@ public DeleteFunctionResponse doDelete(String path, DeleteFunctionRequest reques
562562 */
563563 public DeleteFunctionResponse doDelete (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) throws Exception {
564564 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
565- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
565+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
566566 String response = doRpc (path , requestObj , requestHeaders , "delete" );
567567 return JSON .parseObject (response , DeleteFunctionResponse .class );
568568 }
@@ -578,7 +578,7 @@ public DeleteFunctionResponse doDelete(String path, DeleteFunctionRequest reques
578578 */
579579 public DeleteFunctionResponse doPut (String path , DeleteFunctionRequest requestObj ) throws Exception {
580580 Map <String , String > head = new HashMap <>();
581- head .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
581+ head .putIfAbsent ("Content-Type" , "application/json " );
582582 return doPut (path , requestObj , head );
583583 }
584584
@@ -593,7 +593,7 @@ public DeleteFunctionResponse doPut(String path, DeleteFunctionRequest requestOb
593593 */
594594 public DeleteFunctionResponse doPut (String path , DeleteFunctionRequest requestObj , Map <String , String > head ) throws Exception {
595595 final Map <String , String > requestHeaders = head != null ? new HashMap <>(head ) : new HashMap <>();
596- requestHeaders .putIfAbsent ("Content-Type" , "application/x-www-form-urlencoded " );
596+ requestHeaders .putIfAbsent ("Content-Type" , "application/json " );
597597 String response = doRpc (path , requestObj , requestHeaders , "put" );
598598 return JSON .parseObject (response , DeleteFunctionResponse .class );
599599 }
0 commit comments