# `DripDrop.Policy.UnsubscribeHeaders`
[🔗](https://github.com/agoodway/dripdrop/blob/v0.1.0/lib/dripdrop/policy/unsubscribe_headers.ex#L1)

Adds RFC 8058 one-click unsubscribe headers when a step opts in.

# `apply`

```elixir
@spec apply(map(), map()) :: {:ok, map()} | {:error, map()}
```

Adds List-Unsubscribe headers to an email payload when the step opts in.

# `configured?`

```elixir
@spec configured?() :: boolean()
```

Returns whether an unsubscribe URL builder is configured.

# `enabled?`

```elixir
@spec enabled?(map()) :: boolean()
```

Returns whether unsubscribe headers are enabled for a dispatch context.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
