list-unsubscribe 0.1.0

Parse RFC 2369 List-Unsubscribe and RFC 8058 List-Unsubscribe-Post headers into a typed action enum.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "name": "rfc2369-https-only",
  "description": "Single https URI in List-Unsubscribe, no Post header. Returns HttpLink.",
  "spec": {
    "source": "RFC 2369",
    "url": "https://www.rfc-editor.org/rfc/rfc2369#section-3.2",
    "behavior": "A plain https URI without a one-click Post header is an HttpLink for the user to open."
  },
  "input": {
    "list_unsubscribe": "<https://example.com/unsub?u=abc>",
    "list_unsubscribe_post": null
  },
  "expected": {
    "kind": "HttpLink",
    "url": "https://example.com/unsub?u=abc"
  }
}