Lines Matching defs:len
38 lws_http_date_render(char *buf, size_t len, const struct tm *tm)
42 if (len < 29)
45 lws_snprintf(buf, len, "%c%c%c, %02d %c%c%c %d %02d:%02d:%02d GMT",
54 lws_http_date_render_from_unix(char *buf, size_t len, const time_t *t)
65 if (lws_http_date_render(buf, len, tm))
72 lws_http_date_parse(const char *b, size_t len, struct tm *tm)
76 if (len < 29)
135 lws_http_date_parse_unix(const char *b, size_t len, time_t *t)
139 if (lws_http_date_parse(b, len, &tm))
161 size_t len = (unsigned int)lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_RETRY_AFTER);
178 if (len < 9)
182 if (lws_http_date_parse_unix(p, len, &t))
192 len = (unsigned int)lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_DATE);
193 if (len) {
196 (void)lws_http_date_parse_unix(p, len, &td);