diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-15 15:19:01 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-15 15:19:01 +0700 |
| commit | c358921275fb6c847ed6f9a266712fb1b3488c07 (patch) | |
| tree | 0d0595eb9e34a74fbb51a29aba631a9ed38a698a /http_target.go | |
| parent | 8ba25dd9f5d823a4bd66967b33ee9d2624397129 (diff) | |
| download | gorankusu-c358921275fb6c847ed6f9a266712fb1b3488c07.tar.xz | |
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".
Diffstat (limited to 'http_target.go')
| -rw-r--r-- | http_target.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/http_target.go b/http_target.go index f6a12a0..8e02b14 100644 --- a/http_target.go +++ b/http_target.go @@ -61,14 +61,15 @@ type HTTPTarget struct { Hint string // Description about what this HTTP target is doing. Path string + Method libhttp.RequestMethod + RequestType libhttp.RequestType + // RawBody contains raw request body that is being read and // forwarded to target. // It will be used only WithRawBody is true. RawBody []byte - Results []*AttackResult // Results contains list of load testing output. - RequestType libhttp.RequestType - Method libhttp.RequestMethod + Results []*AttackResult // Results contains list of load testing output. sync.Mutex `json:"-"` // Use this inside the Attack to lock resource. |
