just use:

````rst
:doc:`/cookbook/testing/http_authentication`
````
It will default to the heading of the document.