Skip to content

Commit

Permalink
Update documentation to reference PAC files
Browse files Browse the repository at this point in the history
  • Loading branch information
benjih committed Aug 23, 2018
1 parent 8abcdd7 commit 3f66db7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/pages/reference/api/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,32 @@ Gets the upstream proxy configured for Hoverfly.
-------------------------------------------------------------------------------------------------------------


GET /api/v2/hoverfly/pac
""""""""""""""""""""""""

Gets the PAC file configured for Hoverfly.


-------------------------------------------------------------------------------------------------------------


PUT /api/v2/hoverfly/pac
""""""""""""""""""""""""

Sets the PAC file for Hoverfly.


-------------------------------------------------------------------------------------------------------------


DELETE /api/v2/hoverfly/pac
""""""""""""""""""""""""

Unsets the PAC file configured for Hoverfly.

-------------------------------------------------------------------------------------------------------------


GET /api/v2/cache
""""""""""""""""""""
Gets the requests and responses stored in the cache.
Expand Down
11 changes: 11 additions & 0 deletions docs/pages/tutorials/advanced/behindaproxy/behindaproxy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ For example, if the 'upstream' proxy is running on port ``8080`` on host ``corp.
hoverctl start --upstream-proxy http://corp.proxy:8080
Configuring Hoverfly with a PAC file
------------------------------------

If you have a PAC file for configuring clients with the proxy set up in your environment, you can use this to configure Hoverfly.

For example:

.. code:: bash
hoverctl start --pac-file path/to/file.pac
Upstream proxy authentication
-----------------------------

Expand Down

0 comments on commit 3f66db7

Please sign in to comment.