simplefiles

A lightweight C CGI web application for managing files.
git clone https://scm.kuandu.systems/git-raw/simplefiles.git
Log | Files | Refs | README | LICENSE

http.h (371B)


      1 #ifndef HTTP_H
      2 #define HTTP_H
      3 
      4 #include <sys/types.h>
      5 
      6 struct html_var;
      7 struct html_block;
      8 
      9 void html_headers(const char *status);
     10 int download_headers(const char *, off_t);
     11 void reply(const char *, const char *);
     12 void redirect(const char *);
     13 int render_template_response(const char *,
     14     const struct html_var *, size_t,
     15     const struct html_block *, size_t);
     16 
     17 #endif