nextToken returns the leading RFC 2616 token of s and the string following the token.
(s string)
| 127 | // nextToken returns the leading RFC 2616 token of s and the string following |
| 128 | // the token. |
| 129 | func nextToken(s string) (token, rest string) { |
| 130 | i := 0 |
| 131 | for ; i < len(s); i++ { |
| 132 | if !isTokenOctet[s[i]] { |
| 133 | break |
| 134 | } |
| 135 | } |
| 136 | return s[:i], s[i:] |
| 137 | } |
| 138 | |
| 139 | // nextTokenOrQuoted returns the leading token or quoted string per RFC 2616 |
| 140 | // and the string following the token or quoted string. |
no outgoing calls
no test coverage detected