| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
This will allow running Example server with "make dev" and the test with
"make" or "make test" at the same time.
|
|
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.
|
|
The Run handler is handled automatically.
|
|
In some cases we found that if the HTTP response code is 202 the JSON
response body is not indented.
Turns out this is caused by HTTP Content-Type in response is
"text/plain".
Closes: https://todo.sr.ht/~shulhan/gorankusu/6
|
|
Previously, we use pointer to indicated that the Target can be attacked
or not.
Since HTTPTarget now have AllowAttack, this options can be changes to
non-pointer.
|
|
Instead of function that use the signature of HTTPRequestDumper/
HTTPResponseDumper; change it to function that _return_ HTTPRequestDumper/
HTTPResponseDumper.
In this way, the documentation can show the clear relation between
function and its type.
|
|
|
|
Previously, the function for Attack need to be coded manually.
This changes introduce new function DefaultHTTPAttack that generate
HTTPAttackHandler based on the HTTPTarget method, request type, and
Params; if AllowAttack is true and Attack is nil.
Implements: https://todo.sr.ht/~shulhan/gorankusu/4
|
|
The goal is to remove duplicate code in testing and show the example on
how to create Gorankusu service from godoc.
Implements: https://todo.sr.ht/~shulhan/gorankusu/5
|