Macros | Functions
http_format.h File Reference

Header value formatting. More...


#define VTM_HTTP_DATE_LEN   30


VTM_API int vtm_http_fmt_date (char *dst, size_t max_len, struct vtm_date *date)

Macro Definition Documentation

#define VTM_HTTP_DATE_LEN   30

Minimum buffer length in bytes for holding a formatted HTTP date

Function Documentation

VTM_API int vtm_http_fmt_date ( char *  dst,
size_t  max_len,
struct vtm_date date 

Converts given date to HTTP date format.

dstthe buffer where the converted date string is stored
max_lanthe length of the buffer in bytes
datethe date that should be converted
VTM_OK if the conversion was successful
VTM_ERROR if an error occured