From a50062af46a1df250f30c41850e158eb26639c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 8 Feb 2025 10:03:30 +0800 Subject: [PATCH] update request data location --- request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/request.go b/request.go index 6b79f49..bc3e6fe 100644 --- a/request.go +++ b/request.go @@ -55,7 +55,7 @@ func (rdl *ResponseDataLocation) IsValid() bool { return false } -const ( +var ( RequestDataLocationHeader RequestDataLocation = "HEADER" // header RequestDataLocationCookie RequestDataLocation = "COOKIE" // cookie RequestDataLocationBody RequestDataLocation = "BODY" // body @@ -65,7 +65,7 @@ const ( RequestDataLocationCustomConfig RequestDataLocation = "CUSTOM_CONFIG" // 针对接口的一些自定义配置规则 ) -const ( +var ( ResponseDataLocationHeader ResponseDataLocation = "HEADER" // header ResponseDataLocationCookie ResponseDataLocation = "COOKIE" // cookie ResponseDataLocationBody ResponseDataLocation = "BODY" // body