Skip to content

Commit

Permalink
docs: fix link
Browse files Browse the repository at this point in the history
Fix #1271
  • Loading branch information
honzajavorek committed Mar 11, 2019
1 parent 8d517ac commit 684057c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/hooks/index.rst
Expand Up @@ -42,7 +42,7 @@ Now let's say the real instance of the API has the POST request protected so it
Writing hooks
~~~~~~~~~~~~~

Hooks are functions, which are registered to be ran for a specific test step (HTTP transaction) and at a specific point in Dredd's :ref:`execution life cycle <execution-life-cycle>`. Hook functions take one or more `transaction objects <transaction>`__, which they can modify. Let's use hooks to add an `Authorization header <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization>`__ to Dredd's request.
Hooks are functions, which are registered to be ran for a specific test step (HTTP transaction) and at a specific point in Dredd's :ref:`execution life cycle <execution-life-cycle>`. Hook functions take one or more :ref:`transaction objects <transaction>`, which they can modify. Let's use hooks to add an `Authorization header <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization>`__ to Dredd's request.

Dredd supports :ref:`writing hooks in multiple programming languages <supported-languages>`, but we'll go with JavaScript hooks in this tutorial as they're available out of the box.

Expand Down

0 comments on commit 684057c

Please sign in to comment.