diff options
| -rw-r--r-- | attack_result.go | 4 | ||||
| -rw-r--r-- | errors.go | 4 | ||||
| -rw-r--r-- | example.go | 36 | ||||
| -rw-r--r-- | go.mod | 12 | ||||
| -rw-r--r-- | go.sum | 20 | ||||
| -rw-r--r-- | gorankusu.go | 6 | ||||
| -rw-r--r-- | gorankusu_test.go | 4 | ||||
| -rw-r--r-- | http_attack_handler.go | 2 | ||||
| -rw-r--r-- | http_params_converter.go | 2 | ||||
| -rw-r--r-- | http_run_handler.go | 6 | ||||
| -rw-r--r-- | http_server.go | 8 | ||||
| -rw-r--r-- | http_server_test.go | 4 | ||||
| -rw-r--r-- | http_target.go | 6 | ||||
| -rw-r--r-- | internal/cmd/gorankusu/main.go | 6 | ||||
| -rw-r--r-- | key_form_input.go | 2 | ||||
| -rw-r--r-- | memfs.go | 2 | ||||
| -rw-r--r-- | memfs_www_embed.go | 4 | ||||
| -rw-r--r-- | run_response.go | 2 | ||||
| -rw-r--r-- | target.go | 2 | ||||
| -rw-r--r-- | testdata/apiTargetRunHTTP_withTargetHeaders_test.txt | 12 | ||||
| -rw-r--r-- | testdata/target_http_run_withrawbody_json_test.txt | 2 |
21 files changed, 73 insertions, 73 deletions
diff --git a/attack_result.go b/attack_result.go index cc8ce10..944ce69 100644 --- a/attack_result.go +++ b/attack_result.go @@ -15,8 +15,8 @@ import ( vegeta "github.com/tsenart/vegeta/v12/lib" - libbytes "github.com/shuLhan/share/lib/bytes" - "github.com/shuLhan/share/lib/mlog" + libbytes "git.sr.ht/~shulhan/pakakeh.go/lib/bytes" + "git.sr.ht/~shulhan/pakakeh.go/lib/mlog" ) const ( @@ -7,8 +7,8 @@ import ( "fmt" "net/http" - liberrors "github.com/shuLhan/share/lib/errors" - libhttp "github.com/shuLhan/share/lib/http" + liberrors "git.sr.ht/~shulhan/pakakeh.go/lib/errors" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" ) func errAttackConflict(rr *RunRequest) error { @@ -14,10 +14,10 @@ import ( "sync" "time" - liberrors "github.com/shuLhan/share/lib/errors" - libhttp "github.com/shuLhan/share/lib/http" - "github.com/shuLhan/share/lib/mlog" - "github.com/shuLhan/share/lib/websocket" + liberrors "git.sr.ht/~shulhan/pakakeh.go/lib/errors" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" + "git.sr.ht/~shulhan/pakakeh.go/lib/mlog" + "git.sr.ht/~shulhan/pakakeh.go/lib/websocket" ) const ( @@ -483,11 +483,11 @@ func (ex *Example) registerNavLinks() (err error) { func (ex *Example) pathExampleGet(epr *libhttp.EndpointRequest) ([]byte, error) { var data = &requestResponse{ - Method: epr.HttpRequest.Method, - URL: epr.HttpRequest.URL.String(), - Headers: epr.HttpRequest.Header, - Form: epr.HttpRequest.Form, - MultipartForm: epr.HttpRequest.MultipartForm, + Method: epr.HTTPRequest.Method, + URL: epr.HTTPRequest.URL.String(), + Headers: epr.HTTPRequest.Header, + Form: epr.HTTPRequest.Form, + MultipartForm: epr.HTTPRequest.MultipartForm, Body: string(epr.RequestBody), } @@ -505,16 +505,16 @@ func (ex *Example) pathExampleErrorGet(_ *libhttp.EndpointRequest) ([]byte, erro func (ex *Example) pathExamplePost(epr *libhttp.EndpointRequest) (resb []byte, err error) { var data = &requestResponse{ - Method: epr.HttpRequest.Method, - URL: epr.HttpRequest.URL.String(), - Headers: epr.HttpRequest.Header, - Form: epr.HttpRequest.Form, - MultipartForm: epr.HttpRequest.MultipartForm, + Method: epr.HTTPRequest.Method, + URL: epr.HTTPRequest.URL.String(), + Headers: epr.HTTPRequest.Header, + Form: epr.HTTPRequest.Form, + MultipartForm: epr.HTTPRequest.MultipartForm, Body: string(epr.RequestBody), } var ( - hdrXResponseCode = epr.HttpRequest.Header.Get(headerNameXResponseCode) + hdrXResponseCode = epr.HTTPRequest.Header.Get(headerNameXResponseCode) expRespCode int64 ) expRespCode, err = strconv.ParseInt(hdrXResponseCode, 10, 64) @@ -528,8 +528,8 @@ func (ex *Example) pathExamplePost(epr *libhttp.EndpointRequest) (resb []byte, e res.Message = pathExample res.Data = data - epr.HttpWriter.Header().Set(libhttp.HeaderContentType, epr.Endpoint.ResponseType.String()) - epr.HttpWriter.WriteHeader(res.Code) + epr.HTTPWriter.Header().Set(libhttp.HeaderContentType, epr.Endpoint.ResponseType.String()) + epr.HTTPWriter.WriteHeader(res.Code) return json.Marshal(&res) } @@ -559,7 +559,7 @@ func (ex *Example) pathExampleUpload(epr *libhttp.EndpointRequest) (resb []byte, var res = libhttp.EndpointResponse{} res.Code = http.StatusOK - res.Data = epr.HttpRequest.MultipartForm.Value + res.Data = epr.HTTPRequest.MultipartForm.Value resb, err = json.MarshalIndent(res, ``, ` `) if err != nil { @@ -6,13 +6,13 @@ module git.sr.ht/~shulhan/gorankusu go 1.20 require ( - git.sr.ht/~shulhan/ciigo v0.11.0 - github.com/shuLhan/share v0.53.1-0.20240215151058-c14c0aada881 + git.sr.ht/~shulhan/ciigo v0.11.1-0.20240305111257-b947c3694236 + git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b github.com/tsenart/vegeta/v12 v12.11.1 ) require ( - git.sr.ht/~shulhan/asciidoctor-go v0.5.1 // indirect + git.sr.ht/~shulhan/asciidoctor-go v0.5.2-0.20240305110034-dc67158aeeb6 // indirect github.com/influxdata/tdigest v0.0.1 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/kr/pretty v0.3.1 // indirect @@ -21,12 +21,12 @@ require ( github.com/rs/dnscache v0.0.0-20230804202142-fc85eb664529 // indirect github.com/yuin/goldmark v1.7.0 // indirect github.com/yuin/goldmark-meta v1.1.0 // indirect - golang.org/x/net v0.20.0 // indirect + golang.org/x/net v0.21.0 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.16.0 // indirect + golang.org/x/sys v0.17.0 // indirect golang.org/x/text v0.14.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) -//replace github.com/shuLhan/share => ../share +//replace git.sr.ht/~shulhan/pakakeh.go => ../pakakeh.go @@ -1,7 +1,9 @@ -git.sr.ht/~shulhan/asciidoctor-go v0.5.1 h1:TuuLo+N61+qsXkiFgtiW5W1q7xHzeSID4zH+ci5J8ic= -git.sr.ht/~shulhan/asciidoctor-go v0.5.1/go.mod h1:5audSCN6jDr2+/cMvx1MdZxkCurjl/k6A5OGYWRtB0o= -git.sr.ht/~shulhan/ciigo v0.11.0 h1:t8/PqVQVOsG025WLjNjJSI4S37jN5CkY+LyC+zd1snI= -git.sr.ht/~shulhan/ciigo v0.11.0/go.mod h1:pyt2kxKvipCAO+jrjHuEXOWJ2h0ss/hnO9j7Xot3JHc= +git.sr.ht/~shulhan/asciidoctor-go v0.5.2-0.20240305110034-dc67158aeeb6 h1:/0I9F83ZgfDjVDRTSNGxYaZroOxGg3o5m9GlqnWmYXs= +git.sr.ht/~shulhan/asciidoctor-go v0.5.2-0.20240305110034-dc67158aeeb6/go.mod h1:ht3glgf7w0J2HxyKoy/ZMg//okyw3F6GrwH4/KlwhxA= +git.sr.ht/~shulhan/ciigo v0.11.1-0.20240305111257-b947c3694236 h1:AfOsHMHVAjIN4s5lDDBEZrdB6lbordrbNLnzSATC5+c= +git.sr.ht/~shulhan/ciigo v0.11.1-0.20240305111257-b947c3694236/go.mod h1:tCBmVejTYBdDHFcWFvsP4IfwhmixvKrYIjkzS6GccPs= +git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b h1:LtSlSrDg3Zw1ASfUi5enaHqefPWiWsPEDK+IlzSO72g= +git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b/go.mod h1:C43kVQ9Dai9Ol3bCHi8VKeOtYzp+E8617jNBaIsmd8o= github.com/bmizerany/perks v0.0.0-20230307044200-03f9df79da1e h1:mWOqoK5jV13ChKf/aF3plwQ96laasTJgZi4f1aSOu+M= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/dgryski/go-gk v0.0.0-20200319235926-a69029f61654 h1:XOPLOMn/zT4jIgxfxSsoXPxkrzz0FaCHwp33x5POJ+Q= @@ -26,8 +28,6 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/rs/dnscache v0.0.0-20230804202142-fc85eb664529 h1:18kd+8ZUlt/ARXhljq+14TwAoKa61q6dX8jtwOf6DH8= github.com/rs/dnscache v0.0.0-20230804202142-fc85eb664529/go.mod h1:qe5TWALJ8/a1Lqznoc5BDHpYX/8HU60Hm2AwRmqzxqA= -github.com/shuLhan/share v0.53.1-0.20240215151058-c14c0aada881 h1:SGgdg7934FRJZZ1G+ZZNEdwSL7UgUCFRohtJnwSNrDI= -github.com/shuLhan/share v0.53.1-0.20240215151058-c14c0aada881/go.mod h1:97/BcWdLau8i+xeFvPHdyqph1HgxVBSVhQEUIyCmgRc= github.com/streadway/quantile v0.0.0-20220407130108-4246515d968d h1:X4+kt6zM/OVO6gbJdAfJR60MGPsqCzbtXNnjoGqdfAs= github.com/tsenart/vegeta/v12 v12.11.1 h1:Rbwe7Zxr7sJ+BDTReemeQalYPvKiSV+O7nwmUs20B3E= github.com/tsenart/vegeta/v12 v12.11.1/go.mod h1:swiFmrgpqj2llHURgHYFRFN0tfrIrlnspg01HjwOnSQ= @@ -37,13 +37,13 @@ github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUei github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1 h1:MGwJjxBy0HJshjDNfLsYO8xppfqWlA5ZT9OhtUUhTNw= -golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= -golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= -golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/gorankusu.go b/gorankusu.go index a188f9e..d7c3f57 100644 --- a/gorankusu.go +++ b/gorankusu.go @@ -11,9 +11,9 @@ import ( vegeta "github.com/tsenart/vegeta/v12/lib" - liberrors "github.com/shuLhan/share/lib/errors" - libhttp "github.com/shuLhan/share/lib/http" - "github.com/shuLhan/share/lib/mlog" + liberrors "git.sr.ht/~shulhan/pakakeh.go/lib/errors" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" + "git.sr.ht/~shulhan/pakakeh.go/lib/mlog" ) // Version of gorankusu module. diff --git a/gorankusu_test.go b/gorankusu_test.go index 15fa669..4db34ac 100644 --- a/gorankusu_test.go +++ b/gorankusu_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - libnet "github.com/shuLhan/share/lib/net" - "github.com/shuLhan/share/lib/test/mock" + libnet "git.sr.ht/~shulhan/pakakeh.go/lib/net" + "git.sr.ht/~shulhan/pakakeh.go/lib/test/mock" ) // exGorankusu the Gorankusu instance that contains [Target] to be diff --git a/http_attack_handler.go b/http_attack_handler.go index 8a70416..9ddcc65 100644 --- a/http_attack_handler.go +++ b/http_attack_handler.go @@ -7,7 +7,7 @@ import ( "encoding/json" "fmt" - libhttp "github.com/shuLhan/share/lib/http" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" vegeta "github.com/tsenart/vegeta/v12/lib" ) diff --git a/http_params_converter.go b/http_params_converter.go index af7745b..9a4ef91 100644 --- a/http_params_converter.go +++ b/http_params_converter.go @@ -3,7 +3,7 @@ package gorankusu -import libhttp "github.com/shuLhan/share/lib/http" +import libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" // HTTPParamsConverter is a handler that will be called inside the Run handler // to convert the Params values to type that will be send as request. diff --git a/http_run_handler.go b/http_run_handler.go index 1fa66d1..29eb8a1 100644 --- a/http_run_handler.go +++ b/http_run_handler.go @@ -9,7 +9,7 @@ import ( "io" "net/http" - libhttp "github.com/shuLhan/share/lib/http" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" ) // HTTPRunHandler define the function type that will be called when client @@ -24,7 +24,7 @@ func DefaultHTTPRun() HTTPRunHandler { var ( logp = `DefaultHTTPRun` httpcOpts = &libhttp.ClientOptions{ - ServerUrl: rr.Target.BaseURL, + ServerURL: rr.Target.BaseURL, AllowInsecure: true, } httpc = libhttp.NewClient(httpcOpts) @@ -58,7 +58,7 @@ func DefaultHTTPRun() HTTPRunHandler { var httpRequest *http.Request - httpRequest, err = httpc.GenerateHttpRequest( + httpRequest, err = httpc.GenerateHTTPRequest( rr.HTTPTarget.Method, rr.HTTPTarget.Path, rr.HTTPTarget.RequestType, diff --git a/http_server.go b/http_server.go index 3c0a77f..94dfaf2 100644 --- a/http_server.go +++ b/http_server.go @@ -8,8 +8,8 @@ import ( "fmt" "net/http" - libhttp "github.com/shuLhan/share/lib/http" - "github.com/shuLhan/share/lib/memfs" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" + "git.sr.ht/~shulhan/pakakeh.go/lib/memfs" ) // List of HTTP APIs. @@ -272,7 +272,7 @@ func (gorankusu *Gorankusu) apiAttackHTTPCancel(_ *libhttp.EndpointRequest) (res } func (gorankusu *Gorankusu) apiAttackResultDelete(epr *libhttp.EndpointRequest) (resbody []byte, err error) { - name := epr.HttpRequest.Form.Get(paramNameName) + name := epr.HTTPRequest.Form.Get(paramNameName) if len(name) == 0 { return nil, errInvalidParameter(paramNameName, name) } @@ -293,7 +293,7 @@ func (gorankusu *Gorankusu) apiAttackResultDelete(epr *libhttp.EndpointRequest) } func (gorankusu *Gorankusu) apiAttackResultGet(epr *libhttp.EndpointRequest) (resbody []byte, err error) { - name := epr.HttpRequest.Form.Get(paramNameName) + name := epr.HTTPRequest.Form.Get(paramNameName) if len(name) == 0 { return nil, errInvalidParameter(paramNameName, name) } diff --git a/http_server_test.go b/http_server_test.go index 12e03c0..d8199fd 100644 --- a/http_server_test.go +++ b/http_server_test.go @@ -11,8 +11,8 @@ import ( "net/http/httptest" "testing" - libhttp "github.com/shuLhan/share/lib/http" - "github.com/shuLhan/share/lib/test" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" + "git.sr.ht/~shulhan/pakakeh.go/lib/test" ) type httpRequestParams struct { diff --git a/http_target.go b/http_target.go index 444f3a9..f6a12a0 100644 --- a/http_target.go +++ b/http_target.go @@ -12,9 +12,9 @@ import ( "strings" "sync" - libhttp "github.com/shuLhan/share/lib/http" - "github.com/shuLhan/share/lib/mlog" - libpath "github.com/shuLhan/share/lib/path" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" + "git.sr.ht/~shulhan/pakakeh.go/lib/mlog" + libpath "git.sr.ht/~shulhan/pakakeh.go/lib/path" ) // HTTPPreAttackHandler define the function type that will be called before diff --git a/internal/cmd/gorankusu/main.go b/internal/cmd/gorankusu/main.go index 05ac508..302da1c 100644 --- a/internal/cmd/gorankusu/main.go +++ b/internal/cmd/gorankusu/main.go @@ -12,9 +12,9 @@ import ( "syscall" "time" - "github.com/shuLhan/share/lib/memfs" - "github.com/shuLhan/share/lib/mlog" - "github.com/shuLhan/share/lib/os/exec" + "git.sr.ht/~shulhan/pakakeh.go/lib/memfs" + "git.sr.ht/~shulhan/pakakeh.go/lib/mlog" + "git.sr.ht/~shulhan/pakakeh.go/lib/os/exec" "git.sr.ht/~shulhan/ciigo" "git.sr.ht/~shulhan/gorankusu" diff --git a/key_form_input.go b/key_form_input.go index c770a91..61cbe41 100644 --- a/key_form_input.go +++ b/key_form_input.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/shuLhan/share/lib/math/big" + "git.sr.ht/~shulhan/pakakeh.go/lib/math/big" ) // List of additional parameters to be generated and send if the [FormInput] @@ -3,6 +3,6 @@ package gorankusu -import "github.com/shuLhan/share/lib/memfs" +import "git.sr.ht/~shulhan/pakakeh.go/lib/memfs" var memfsWWW *memfs.MemFS diff --git a/memfs_www_embed.go b/memfs_www_embed.go index 5740f46..88f0579 100644 --- a/memfs_www_embed.go +++ b/memfs_www_embed.go @@ -1,11 +1,11 @@ // SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info> // SPDX-License-Identifier: GPL-3.0-or-later -// Code generated by github.com/shuLhan/share/lib/memfs DO NOT EDIT. +// Code generated by git.sr.ht/~shulhan/pakakeh.go/lib/memfs DO NOT EDIT. package gorankusu import ( - "github.com/shuLhan/share/lib/memfs" + "git.sr.ht/~shulhan/pakakeh.go/lib/memfs" ) func generate__www() *memfs.Node { diff --git a/run_response.go b/run_response.go index c0ab5c9..7b619c5 100644 --- a/run_response.go +++ b/run_response.go @@ -8,7 +8,7 @@ import ( "io" "net/http" - libhttp "github.com/shuLhan/share/lib/http" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" ) // RunResponse contains the raw request and response when running HTTP or @@ -6,7 +6,7 @@ package gorankusu import ( "fmt" - libhttp "github.com/shuLhan/share/lib/http" + libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" ) // Target contains group of HTTPTarget that can be tested by Gorankusu. diff --git a/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt b/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt index 83b8618..57fe246 100644 --- a/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt +++ b/testdata/apiTargetRunHTTP_withTargetHeaders_test.txt @@ -28,7 +28,7 @@ Test data for running HTTP target with global headers. <<< global:RunResponse.DumpRequest GET /example?Param1=value+of+param1 HTTP/1.1 Host: 127.0.0.1:8217 -User-Agent: libhttp/0.53.0 +User-Agent: libhttp/0.54.0 Authorization: global-auth-value Accept-Encoding: gzip @@ -39,7 +39,7 @@ HTTP/1.1 200 OK Content-Length: 275 Content-Type: application/json -{"data":{"Method":"GET","URL":"/example?Param1=value+of+param1","Headers":{"Accept-Encoding":["gzip"],"Authorization":["global-auth-value"],"User-Agent":["libhttp/0.53.0"]},"Form":{"Param1":["value of param1"]},"MultipartForm":null,"Body":""},"message":"/example","code":200} +{"data":{"Method":"GET","URL":"/example?Param1=value+of+param1","Headers":{"Accept-Encoding":["gzip"],"Authorization":["global-auth-value"],"User-Agent":["libhttp/0.54.0"]},"Form":{"Param1":["value of param1"]},"MultipartForm":null,"Body":""},"message":"/example","code":200} <<< global:RunResponse.ResponseBody { @@ -54,7 +54,7 @@ Content-Type: application/json "global-auth-value" ], "User-Agent": [ - "libhttp/0.53.0" + "libhttp/0.54.0" ] }, "Form": { @@ -103,7 +103,7 @@ Content-Type: application/json <<< override:RunResponse.DumpRequest GET /example?Param1=value+of+param1 HTTP/1.1 Host: 127.0.0.1:8217 -User-Agent: libhttp/0.53.0 +User-Agent: libhttp/0.54.0 Authorization: local-auth-value Accept-Encoding: gzip @@ -114,7 +114,7 @@ HTTP/1.1 200 OK Content-Length: 274 Content-Type: application/json -{"data":{"Method":"GET","URL":"/example?Param1=value+of+param1","Headers":{"Accept-Encoding":["gzip"],"Authorization":["local-auth-value"],"User-Agent":["libhttp/0.53.0"]},"Form":{"Param1":["value of param1"]},"MultipartForm":null,"Body":""},"message":"/example","code":200} +{"data":{"Method":"GET","URL":"/example?Param1=value+of+param1","Headers":{"Accept-Encoding":["gzip"],"Authorization":["local-auth-value"],"User-Agent":["libhttp/0.54.0"]},"Form":{"Param1":["value of param1"]},"MultipartForm":null,"Body":""},"message":"/example","code":200} <<< override:RunResponse.ResponseBody { @@ -129,7 +129,7 @@ Content-Type: application/json "local-auth-value" ], "User-Agent": [ - "libhttp/0.53.0" + "libhttp/0.54.0" ] }, "Form": { diff --git a/testdata/target_http_run_withrawbody_json_test.txt b/testdata/target_http_run_withrawbody_json_test.txt index 4666b0e..9c23ba2 100644 --- a/testdata/target_http_run_withrawbody_json_test.txt +++ b/testdata/target_http_run_withrawbody_json_test.txt @@ -18,7 +18,7 @@ Test data for testing [HTTPTarget.WithRawBody]. <<< valid:RunResponse.DumpRequest POST /example/rawbody/json HTTP/1.1 Host: 127.0.0.1:8217 -User-Agent: libhttp/0.53.0 +User-Agent: libhttp/0.54.0 Content-Length: 27 Content-Type: application/json Accept-Encoding: gzip |
