aboutsummaryrefslogtreecommitdiff
path: root/target.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-02-21 01:29:25 +0700
committerShulhan <ms@kilabit.info>2024-02-21 01:34:56 +0700
commit9ca138628023b926ddf07cbd2e93562b8e782cf6 (patch)
treeb2c4524d4ed5ebd7098ad69c2917ee49159e2d93 /target.go
parent99999635f67931e1a6deb608f13b2dc2ecd9df73 (diff)
downloadgorankusu-9ca138628023b926ddf07cbd2e93562b8e782cf6.tar.xz
all: add global HTTP headers for Target
The Headers field on Target define the global headers that will be send along with all HTTPTarget or WebSocketTarget. The same header can also be defined on HTTPTarget that override the value of Target.
Diffstat (limited to 'target.go')
-rw-r--r--target.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/target.go b/target.go
index 13d4571..e71ef14 100644
--- a/target.go
+++ b/target.go
@@ -14,6 +14,12 @@ type Target struct {
// HTTPClient that can be used for running HTTPTarget.
HTTPClient *libhttp.Client `json:"-"`
+ // Headers define global headers that will send on all HTTPTargets
+ // or WebSocketTargets.
+ // The same header can also be defined on HTTPTarget that override
+ // the value in here.
+ Headers KeyFormInput
+
Vars KeyFormInput
ID string