Skip to content

Commit

Permalink
simplified doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Dec 2, 2020
1 parent b41ec38 commit 696d596
Showing 1 changed file with 3 additions and 43 deletions.
46 changes: 3 additions & 43 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,49 +64,9 @@ Basic usage example: 100 queries with a maximum concurrency of 10 users::
Code 200 1000 times.


Salvo has more options::

$ salvo --help
usage: salvo [-h] [--version] [-v] [-m {GET,POST,DELETE,PUT,HEAD,OPTIONS}]
[--content-type CONTENT_TYPE] [-D DATA] [-c CONCURRENCY] [-a AUTH]
[--header HEADER] [--pre-hook PRE_HOOK] [--post-hook POST_HOOK]
[--json-output] [-q] [-n REQUESTS | -d DURATION]
[url]

Simple HTTP Load runner based on Molotov.

positional arguments:
url URL to hit

optional arguments:
-h, --help show this help message and exit
--version Displays version and exits.
-v, --verbose Verbosity level. -v will display tracebacks. -vv requests and responses.
-m {GET,POST,DELETE,PUT,HEAD,OPTIONS}, --method {GET,POST,DELETE,PUT,HEAD,OPTIONS}
HTTP Method
--content-type CONTENT_TYPE
Content-Type
-D DATA, --data DATA Data. Prefixed by "py:" to point a python callable.
-c CONCURRENCY, --concurrency CONCURRENCY
Concurrency
-a AUTH, --auth AUTH Basic authentication user:password
--header HEADER Custom header. name:value
--pre-hook PRE_HOOK Python module path (eg: mymodule.pre_hook) to a
callable which will be executed before doing a request for example:
pre_hook(method, url, options). It must return a tuple of parameters given
in function definition
--post-hook POST_HOOK
Python module path (eg: mymodule.post_hook) to a
callable which will be executed after a request is
done for example: eg. post_hook(response). It must
return a given response parameter or raise an
`RequestException` for failed request.
--json-output Prints the results in JSON instead of the default format
-q, --quiet Don't display progress bar
-n REQUESTS, --requests REQUESTS
Number of requests
-d DURATION, --duration DURATION
Duration in seconds
You can also use `--duration` if you want to run for a given amount of time.

For a full list of features, run `salvo --help`


Contribute
Expand Down

0 comments on commit 696d596

Please sign in to comment.