summaryrefslogtreecommitdiff
tag namev0.6.0 (cdd1c58b443bdb47de17e708a240abd6587a20c5)
tag date2024-03-05 16:14:18 +0700
tagged byShulhan <ms@kilabit.info>
tagged objectcommit 20e45fe125...
downloadgorankusu-0.6.0.tar.xz
Release gorankusu v0.6.0 (2024-03-05)
=== Breaking changes * target: changes Opts to non-pointer 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. * all: change the signature of default request/response dumper 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. === New features * 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. * all: add default HTTPRunHandler Previously, the default HTTPRunHandler is hidden, called dynamically based on Run is nil or not. This changes make it exported as function that return HTTPRunHandler to show how define and create a custom HTTPRunHandler. * all: add default HTTPParamsConverter for [HTTPTarget.ParamsConverter] The DefaultParamsConverter define default function to convert [HTTPTarget.Params] to its equivalent parameters in HTTP, either as query in URL or as bytes in body. This changes introduce breaking changes in HTTPTarget where field ConvertParams renamed to ParamsConverter. * all: set default HTTPTarget Attack if its not set 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. === Bug fixes * all: fix null navigation links If the navLinks fields is empty, the HTTP API will return "null" and cause the rendering error. This changes fix this issue by allocating the slice navLinks with one capabilities to make JSON always return "[]" if its empty. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyS35x1RIQ2SkuGz5KU2C1AMnE8AUCZebicAAKCRBKU2C1AMnE 8PriAQDc/AXWhwYPEYvWUSF/4h3iUEYx1U8CP1oXFkukOVpmHAD/bQvRaN7lzXen qKTgZta2ozqSyJ7+4ImMn2XdOxxEMQM= =e5Pm -----END PGP SIGNATURE-----