HTTP status code from a raw response ("HTTP/1.1 404 ..."), or -1. */
| 206 | |
| 207 | /* HTTP status code from a raw response ("HTTP/1.1 404 ..."), or -1. */ |
| 208 | static int th_status(const char *resp) { |
| 209 | if (strncmp(resp, "HTTP/1.1 ", 9) != 0) |
| 210 | return -1; |
| 211 | return atoi(resp + 9); |
| 212 | } |
| 213 | |
| 214 | /* ── Parser unit tests ────────────────────────────────────────── */ |
| 215 |
no outgoing calls
no test coverage detected