modify_response

command
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

modify_response

This is an example of middleware. This middleware will replace the response body with "body was replaced by middleware".

You can test middleware by using Hoverfly in modify mode.

hoverctl start
hoverctl mode modify
JavaScript
hoverctl middleware --binary node --script modify_response.js
Python
hoverctl middleware --binary python --script modify_response.py
Ruby
hoverctl middleware --binary ruby --script modify_response.rb

To find out more, please check the documentation regarding middleware.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL