Skip to content

Commit 3f66db7

Browse files
committed
Update documentation to reference PAC files
1 parent 8abcdd7 commit 3f66db7

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

docs/pages/reference/api/api.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,32 @@ Gets the upstream proxy configured for Hoverfly.
366366
-------------------------------------------------------------------------------------------------------------
367367

368368

369+
GET /api/v2/hoverfly/pac
370+
""""""""""""""""""""""""
371+
372+
Gets the PAC file configured for Hoverfly.
373+
374+
375+
-------------------------------------------------------------------------------------------------------------
376+
377+
378+
PUT /api/v2/hoverfly/pac
379+
""""""""""""""""""""""""
380+
381+
Sets the PAC file for Hoverfly.
382+
383+
384+
-------------------------------------------------------------------------------------------------------------
385+
386+
387+
DELETE /api/v2/hoverfly/pac
388+
""""""""""""""""""""""""
389+
390+
Unsets the PAC file configured for Hoverfly.
391+
392+
-------------------------------------------------------------------------------------------------------------
393+
394+
369395
GET /api/v2/cache
370396
""""""""""""""""""""
371397
Gets the requests and responses stored in the cache.

docs/pages/tutorials/advanced/behindaproxy/behindaproxy.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ For example, if the 'upstream' proxy is running on port ``8080`` on host ``corp.
1616
1717
hoverctl start --upstream-proxy http://corp.proxy:8080
1818
19+
Configuring Hoverfly with a PAC file
20+
------------------------------------
21+
22+
If you have a PAC file for configuring clients with the proxy set up in your environment, you can use this to configure Hoverfly.
23+
24+
For example:
25+
26+
.. code:: bash
27+
28+
hoverctl start --pac-file path/to/file.pac
29+
1930
Upstream proxy authentication
2031
-----------------------------
2132

0 commit comments

Comments
 (0)