project-receptor / python-receptor

Project Receptor is a flexible multi-service relayer with remote execution and orchestration capabilities linking controllers with executors across a mesh of nodes.
Other
32 stars 21 forks source link

Add ws_extra_header option #161

Closed ghjm closed 4 years ago

ghjm commented 4 years ago

This adds the --ws_extra_header command line and config file option. When used as follows:

receptor ping foo --peer ws://localhost:1234 --ws_extra_header=x-special-auth:supersecret --ws_extra_header=foo:bar

this will cause the Receptor client to include x-special-auth and foo HTTP headers on initial connection to its websocket peer. When regular sockets are used, this option has no effect.

See issue https://github.com/project-receptor/receptor/issues/151.