(custom, wildcard any)
| 98 | } |
| 99 | |
| 100 | func chooseData(custom, wildcard any) any { |
| 101 | if custom != nil { |
| 102 | return custom |
| 103 | } |
| 104 | if wildcard != nil { |
| 105 | return wildcard |
| 106 | } |
| 107 | panic("negotiation config is invalid") |
| 108 | } |
| 109 | |
| 110 | func parseAccept(acceptHeader string) []string { |
| 111 | parts := strings.Split(acceptHeader, ",") |
no outgoing calls