function outgoingInterceptor (proxy) {
  const responseBody = rocky.middleware.responseBody
  responseBody.$name = '$outgoingInterceptor$'

  const interceptor = responseBody(function (req, res, next) {
    proxy._outPoisons.run(req, res, next)
  })

  proxy._outgoingEnabled = true
  proxy.poison(interceptor)
}
function outgoingInterceptor (proxy) {
  const responseBody = rocky.middleware.responseBody
  responseBody.$name = '$outgoingInterceptor$'

  const interceptor = responseBody(function (req, res, next) {
    proxy._outPoisons.run(req, res, next)
  })

  proxy._outgoingEnabled = true
  proxy.poison(interceptor)
}
function outgoingInterceptor ( proxy ) { const responseBody = rocky . middleware . responseBody responseBody . $name = '$outgoingInterceptor$' const interceptor = responseBody ( function ( req , res , next ) { proxy . _outPoisons . run ( req , res , next ) } ) proxy . _outgoingEnabled = true proxy . poison ( interceptor ) }
Private helpers
Private helpers