Have ideas to improve npm?Join in the discussion! »

    hapi-proxy-get

    0.1.3 • Public • Published

    hapi-proxy-get

    Hapi plugin to proxy get requests

    installation

    'npm install hapi-proxy-get -S'

    usage

    const Hapi = require('hapi');
    
    const server = hapi.server();
    await server.register([{
      plugin: require('hapi-proxy-get'),
      options: {
        uri: 'https://my-proxied-uri.com'
        path: '/proxy',
        options: {
          tags: ['proxy']
        }
      }
    }]);
    

    where:

    • uri is the uri which where the request is directed to

      Note: A correct uri is required

    • path is the prefix for the path

      Default: '/proxy'

    • options is an object containing the hapi route options

      Default: {}

    Install

    npm i hapi-proxy-get

    DownloadsWeekly Downloads

    13

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    76.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar