diff options
| author | Shulhan <ms@kilabit.info> | 2021-03-27 21:57:57 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-03-27 21:57:57 +0700 |
| commit | eaffbf8780e370ecec4e9bbc534694b8a815a86a (patch) | |
| tree | 53d5f36d7059fdcf58824ab36cad103dc0d2fd08 /http_target.go | |
| parent | a098c7d1641299e14ddfa88800922c128feff2d0 (diff) | |
| download | gorankusu-eaffbf8780e370ecec4e9bbc534694b8a815a86a.tar.xz | |
all: change the Run result to return dump of HTTP request and response
Previously, we display the actual response of the HTTP target only
on the user interface.
This changes make the Run function to display the actual HTTP request and
response that being send and received on HTTP target.
Diffstat (limited to 'http_target.go')
| -rw-r--r-- | http_target.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_target.go b/http_target.go index f21df13..79057bb 100644 --- a/http_target.go +++ b/http_target.go @@ -19,7 +19,7 @@ import ( // HttpRunHandler define the function type that will be called when client // send request to run the HTTP target. // -type HttpRunHandler func(rr *RunRequest) ([]byte, error) +type HttpRunHandler func(rr *RunRequest) (runres *RunResponse, err error) // // HttpAttackHandler define the function type that will be called when client |
