View Source Tesla.Middleware.SSE (tesla v1.9.0)

Decode Server Sent Events.

This middleware is mostly useful when streaming response body.

Examples

plug Tesla.Middleware.SSE, only: :data

Options

  • :only - keep only specified keys in event (necessary for using with JSON middleware)
  • :decode_content_types - list of additional decodable content-types

Summary

Functions