* Get the first non-whitespace character in a string. * * @param {string} str * @return {function} * @private
(str)
| 186 | */ |
| 187 | |
| 188 | function firstchar (str) { |
| 189 | var match = FIRST_CHAR_REGEXP.exec(str) |
| 190 | |
| 191 | return match |
| 192 | ? match[1] |
| 193 | : undefined |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Get the charset of a request. |