tomakehurst/wiremock — pull request #10 by sandarenu (2012-11-28 05:05:00+00:00)
Title: Callback request support for wiremock

Hi,

I've implemented callback request support for wiremock. With it we can configure wiremock to initiate new http request in addition to normal http response. So the flow would look like follows.
```
--- 1. send req ------>
Client <-- 2. http resp ----- WireMock
<-- 3. new http req --
--- 4. http resp ---->
```

I've added test class `com.github.tomakehurst.wiremock.WireMockSendCallbackRequestAsResponseTest` to test this flow.

This callback feature can be used to mock asynchronous http servers.

Thanks and regards,
Sandarenu.