Skip to content

Instantly share code, notes, and snippets.

@sauthieg
Created October 19, 2014 08:17
Show Gist options
  • Save sauthieg/b4658a6b111620f99705 to your computer and use it in GitHub Desktop.
Save sauthieg/b4658a6b111620f99705 to your computer and use it in GitHub Desktop.
Install a CaptureFilter in a Chain
{
"heap": {
"objects": [
{
"name": "CapturingChain",
"type": "Chain",
"config": {
"filters": [ "Capture" ],
"handler": "Forwarder"
}
},
{
"name": "Capture",
"type": "CaptureFilter",
"comment": "Capture both the request and the responses in a file",
"config": {
"file": "/tmp/gateway.log",
"captureEntity": true
}
},
{
"name": "Forwarder",
"type": "ClientHandler",
"config": { }
}
]
},
"handlerObject": "CapturingChain",
"baseURI": "http://localhost:80"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment