Felix
Felix

Reputation: 3134

Adding proxy to a handler - Hapi

It is possible to add a proxy object to a pre-handler on Hapi, something like

    pre:[{
      assign: 'callProxy'
      method: {
        proxy:{}
      }
    },
    {
      assign: 'getDataFromProxy',
      method: ....
    }
    ]

I am trying to use H2O2 but the docs just point to a handler.

Thanks.

Upvotes: 0

Views: 482

Answers (1)

Felix
Felix

Reputation: 3134

It turns out that the H2O2 issues log explicit says:

Well, it is no longer a proxy... You can just user wreck or request and write your own handler. - hueniverse

Upvotes: 1

Related Questions