nitishm / vegeta-server

A RESTful API server for vegeta, a load testing tool written in Go.
MIT License
63 stars 17 forks source link

Add support for binary encoded format for GET /api/v1/report endpoint #25

Closed nitishm closed 5 years ago

nitishm commented 5 years ago

The report endpoint returns a JSON report by default.

This task is to provide (query string based) support for the binary encoded format for the GET /api/v1/report?format=binary.

This allows it to be saved in a result.bin file to be used directly with the vegeta CLI tool.

This should be as easy as returning the Result member from the AttackDetails struct, which stores the gob encoded binary attack results.