diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..40e5435d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM golang:1.11.5-alpine3.9 +RUN apk add --no-cache git && \ + go get -u github.com/markFromMST/hey +ENTRYPOINT ["hey"] diff --git a/go.mod b/go.mod index 10a2142f..349fbd10 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/rakyll/hey +module github.com/markFromMST/hey require ( github.com/google/uuid v1.1.0 diff --git a/hey.go b/hey.go index d96455b9..7b9bbdb8 100644 --- a/hey.go +++ b/hey.go @@ -85,7 +85,9 @@ Options: -t Timeout for each request in seconds. Default is 20, use 0 for infinite. -A HTTP Accept header. -d HTTP request body. - -D HTTP request body from file. For example, /home/user/file.txt or ./file.txt. + -D HTTP request body from file. For example, /home/user/file.txt or ./file.txt. + Any {hey_uuid} within this file will be replaced with a UUID each time it is + referenced and in each concurrent request too. -T Content-type, defaults to "text/html". -a Basic authentication, username:password. -x HTTP Proxy address as host:port.