You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Hoverfly](http://hoverfly.io) is a lightweight, open source [service virtualization](https://en.wikipedia.org/wiki/Service_virtualization) tool. Using Hoverfly, you can virtualize your application dependencies to create a self-contained development or test environment.
4
+
[Hoverfly](http://hoverfly.io) is a lightweight, open source [service virtualization](https://en.wikipedia.org/wiki/Service_virtualization) tool.
5
+
Using Hoverfly, you can virtualize your application dependencies to create a self-contained development or test environment.
5
6
6
-
Hoverfly is a proxy written in [Go](https://github.com/golang/go). It can capture HTTP(s) traffic between an application under test and external services, and then replace the external services. Another powerful feature: middleware modules, where users can introduce their own custom logic. **Middleware modules can be written in any language**. Hoverfly uses [Redis](http://redis.io/) for persistence.
7
+
Hoverfly is a proxy written in [Go](https://github.com/golang/go). It can capture HTTP(s) traffic between an application under test
8
+
and external services, and then replace the external services. Another powerful feature: middleware modules, where users
9
+
can introduce their own custom logic. **Middleware modules can be written in any language**.
7
10
8
11
More information about Hoverfly and how to use it:
@@ -23,7 +26,7 @@ The Vagrant provisioning script will start hoverfly in the background in ["virtu
23
26
24
27
### Build it yourself
25
28
26
-
Ensure you have [Redis](http://redis.io), then use [Glide](https://github.com/Masterminds/glide) to fetch the dependencies with:
29
+
Use [Glide](https://github.com/Masterminds/glide) to fetch the dependencies (or you can also use _git submodule init_) with:
27
30
28
31
glide up
29
32
@@ -37,11 +40,15 @@ And run it:
37
40
38
41
### Pre-built binary
39
42
40
-
Pre-built Hoverfly binaries are available [here](https://github.com/SpectoLabs/hoverfly/releases/). You may find it easier to download a binary - however since the Hoverfly admin UI requires static files you will need to clone the Hoverfly repo first, and then copy the binary to the Hoverfly directory before executing it. You will also need [Redis](http://redis.io/).
43
+
Pre-built Hoverfly binaries are available [here](https://github.com/SpectoLabs/hoverfly/releases/).
44
+
You may find it easier to download a binary - however since the Hoverfly admin UI requires static files you will need
45
+
to clone the Hoverfly repo first, and then copy the binary to the Hoverfly directory before executing it.
41
46
42
47
## Admin UI
43
48
44
-
The Hoverfly admin UI is available at [http://localhost:8888/](http://localhost:8888/). It uses the [API](api) (as described below) to change state. It also allows you to wipe the captured requests/responses and shows the number of captured records. For other functions, such as export/import, you can use the API directly.
49
+
The Hoverfly admin UI is available at [http://localhost:8888/](http://localhost:8888/). It uses the [API](api)
50
+
(as described below) to change state. It also allows you to wipe the captured requests/responses and shows the number
51
+
of captured records. For other functions, such as export/import, you can use the API directly.
45
52
46
53
## Hoverfly is a proxy
47
54
@@ -58,15 +65,17 @@ You can specify which site to capture or virtualize with a regular expression (b
Hoverfly has different operating modes. Each mode changes the behavior of the proxy. Based on the selected mode, Hoverfly can
61
-
either capture the requests and responses, look for them in the cache, or send them directly to the middleware and respond with a payload that is generated by the middleware (more on middleware below).
68
+
either capture the requests and responses, look for them in the cache, or send them directly to the middleware and
69
+
respond with a payload that is generated by the middleware (more on middleware below).
62
70
63
71
### Virtualize
64
72
65
73
By default, the proxy starts in virtualize mode. You can apply middleware to each response.
66
74
67
75
### Capture
68
76
69
-
When capture mode is active, Hoverfly acts as a "man-in-the-middle". It makes requests on behalf of a client and records the responses. The response is then sent back to the original client.
77
+
When capture mode is active, Hoverfly acts as a "man-in-the-middle". It makes requests on behalf of a client and records
78
+
the responses. The response is then sent back to the original client.
70
79
71
80
To switch to capture mode, you can add the "--capture" flag during startup:
0 commit comments