Commit 4cc16e8
committed
feat: add SetType and SetContentType helpers for Token
Adds Token.SetType(typ) and Token.SetContentType(cty) methods as
convenience helpers for setting the 'typ' and 'cty' header parameters
defined in RFC 7519 Sections 5.1 and 5.2.
These methods improve discoverability for registered header parameters
compared to directly mutating Token.Header.
Closes #4971 parent e8e5b83 commit 4cc16e8
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments