From 0ecab11e3cb9bb3d42a12ddca4a5c5746f347ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 14 Oct 2023 01:34:00 +0800 Subject: [PATCH] update --- example/qml-Qt6/page/T_Http.qml | 3 +++ example/qml/page/T_Http.qml | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/example/qml-Qt6/page/T_Http.qml b/example/qml-Qt6/page/T_Http.qml index 30d39791..5864652a 100644 --- a/example/qml-Qt6/page/T_Http.qml +++ b/example/qml-Qt6/page/T_Http.qml @@ -100,6 +100,9 @@ FluContentPage{ params.custtel = "1234567890" params.custemail = "zhuzichu520@gmail.com" request.params = params + var headers = {} + headers.test = "123456789456465321354" + request.headers = headers http.post(request,callable) } } diff --git a/example/qml/page/T_Http.qml b/example/qml/page/T_Http.qml index 47a10ec7..953364b8 100644 --- a/example/qml/page/T_Http.qml +++ b/example/qml/page/T_Http.qml @@ -101,6 +101,9 @@ FluContentPage{ params.custtel = "1234567890" params.custemail = "zhuzichu520@gmail.com" request.params = params + var headers = {} + headers.test = "123456789456465321354" + request.headers = headers http.post(request,callable) } } @@ -128,6 +131,15 @@ FluContentPage{ http.postString(request,callable) } } + FluButton{ + implicitWidth: parent.width + implicitHeight: 36 + text: "Delete请求" + onClicked: { + var request = http.newRequest("https://httpbingo.org/delete") + http.deleteResource(request,callable) + } + } FluProgressButton{ id:btn_download implicitWidth: parent.width