feat(interception): Implement request.mockResponse method (#1064)

feat(interception): Implement request.respond method

This patch implements a new Request.respond method. This
allows users to fulfill the intercepted request with a hand-crafted
response if they wish so.

References #1020.
This commit is contained in:
Andrey Lushnikov
2017-10-20 16:55:15 -07:00
committed by GitHub
parent 7f60e33a63
commit bcc969ccc4
5 changed files with 193 additions and 2 deletions

BIN
test/assets/pptr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB