Home
HTTP module

StaticFileInfo

Metadata needed to serve a static file with HTTP validators.

StaticFileInfo

#include <icy/http/server.h>

Metadata needed to serve a static file with HTTP validators.

Public Attributes

ReturnNameDescription
uint64_tsizeFile size in bytes.
TimestamplastModifiedLast modification time, normalized to HTTP-second precision.
std::stringetagWeak validator suitable for ETag/If-None-Match.

size

uint64_t size = 0

File size in bytes.


lastModified

Timestamp lastModified

Last modification time, normalized to HTTP-second precision.


etag

std::string etag

Weak validator suitable for ETag/If-None-Match.