HTTP Relay

Calls out to an external HTTP API that implements application logic and provides a similar API for application logic to call when sending messages.

HTTP Relay

class vumi.application.http_relay.HTTPRelayConfig(config_data, static=False)

Configuration options:

Parameters:
  • amqp_prefetch_count (int) – The number of messages fetched concurrently from each AMQP queue by each worker instance.
  • transport_name (str) – The name this application instance will use to create its queues.
  • send_to (dict) – ‘send_to’ configuration dict.
  • url (URL) – URL to submit incoming message to.
  • event_url (URL) – URL to submit incoming events to. (Defaults to the same as ‘url’).
  • http_method (str) – HTTP method for submitting messages.
  • auth_method (str) – HTTP authentication method.
  • username (str) – Username for HTTP authentication.
  • password (str) – Password for HTTP authentication.
class vumi.application.http_relay.HTTPRelayApplication(options, config=None)