hermes

HTTP GET/HEAD-only web server for static content.
git clone git://git.francescosaccone.com/hermes
Log | Files | Refs | README | LICENSE

commit 588063dc0d636b07a747ce8dbac6021e1f055a9f
parent 4c84d0bba7e0d2be09acec91380d6e489def906d
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Mon, 31 Mar 2025 17:56:40 +0200

feat: define file_content struct

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mfile.h | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/file.h b/file.h @@ -1,6 +1,11 @@ #ifndef FILE_H #define FILE_H +struct file_content { + char *content; + size_t length; +}; + int is_file_readable(char *path);