(s string)
| 84 | var reIsAscii = regexp.MustCompile("^[[:ascii:]]*$") |
| 85 | |
| 86 | func isAscii(s string) bool { |
| 87 | return reIsAscii.MatchString(s) |
| 88 | } |
| 89 | |
| 90 | // https://wicg.github.io/webpackage/draft-yasskin-dispatch-bundled-exchanges.html#cbor-headers |
| 91 | func decodeCborHeaders(dec *cbor.Decoder) (http.Header, map[string]string, error) { |