| 418 | } |
| 419 | |
| 420 | void http_header::date_format(char* out, size_t size, time_t t) |
| 421 | { |
| 422 | const char* ptr = http_mkrfc1123(out, size, t); |
| 423 | if (*ptr == 0) { |
| 424 | logger_error("gmtime error %s", last_serror()); |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | bool http_header::is_request() const |
| 429 | { |
no test coverage detected