From c358921275fb6c847ed6f9a266712fb1b3488c07 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 15 Mar 2024 15:19:01 +0700 Subject: all: update module pakakeh.go to the tip On the "lib/http" we refactoring RequestMethod and RequestType type from int to string for readability, when the value is encoded, for example to JSON. So instead of 0, 1 or 2; it will print "GET", "CONNECT", or "HEAD". --- testdata/apiTargetRunHTTP_withTargetHeaders_test.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testdata/apiTargetRunHTTP_withTargetHeaders_test.txt') diff --git a/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt b/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt index 57fe246..8f78775 100644 --- a/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt +++ b/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt @@ -13,8 +13,8 @@ Test data for running HTTP target with global headers. }, "HTTPTarget": { "id": "http_get", - "Method": 0, - "RequestType": 1, + "Method": "GET", + "RequestType": "query", "Path": "/example", "Params": { "Param1": { @@ -82,8 +82,8 @@ Content-Type: application/json }, "HTTPTarget": { "id": "http_get", - "Method": 0, - "RequestType": 1, + "Method": "GET", + "RequestType": "query", "Path": "/example", "Headers": { "Authorization": { -- cgit v1.3