Icecast.Adapter.Req (icecast v1.0.2)

Copy Markdown View Source

Req adapter

A Finch instance can be configured.

:icecast, finch: name_of_instance

Icy metadata is an HTTP/1.x convention, so protocols: [:http1] is set as default (although it's also currently the default in Finch)

Default options

[
  headers: [{"Icy-Metadata", "1"}],
  redirect: true,
  max_redirects: 5,
  retry: false,
  decode_body: false,
  cache: false,
  receive_timeout: 5000
]
# Only used when no :finch instance is configured
[
  timeout: 5000,
  protocols: [:http1]
]