Skip to content

sidecar proxy #2

Description

@github1

Provide ability to register message handlers which proxy to other services.

Options

  • target: url to proxy to
  • timeout: optional request timeout
  • interceptor: function to modify raw request (e.g. add headers, manipulate body)
meshage
    .init(new meshage.GrapevineCluster())
    .register('echo', meshage.proxy({
       target: 'http://localhost:7000',
       timeout: 30,
       interceptor: req => {
       }
     }))
    .start();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions