Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

flt_http.c File Reference

#include "config.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "hashlib.h"
#include "readline.h"
#include "utils.h"
#include "configparser.h"
#include "cfcgi.h"
#include "template.h"
#include "clientlib.h"

Go to the source code of this file.

Functions

time_t flt_http_gmt_diff (void)
int flt_http_get_month (const u_char *m)
long flt_http_get_lm (int sock)
int flt_http_validate_cache (t_cf_hash *head, t_configuration *dc, t_configuration *vc, time_t lm, int sock)
int flt_http_header_callbacks (t_cf_hash *head, t_cf_hash *header_table, t_configuration *dc, t_configuration *vc, int sock)
time_t flt_http_lm_callbacks (t_cf_hash *head, t_configuration *dc, t_configuration *vc, int sock, time_t t1)
int flt_http_execute (t_cf_hash *head, t_configuration *dc, t_configuration *vc, int sock)
int flt_http_handle_command (t_configfile *cfile, t_conf_opt *opt, u_char **args, int argnum)
int flt_http_set_headers (t_cf_hash *cgi, t_cf_hash *header_table, t_configuration *dc, t_configuration *vc, int sock)
int flt_http_validate (t_cf_hash *head, t_configuration *dc, t_configuration *vc, time_t last_modified, int sock)
time_t flt_http_lm (t_cf_hash *head, t_configuration *dc, t_configuration *vc, int sock)

Variables

struct {
   int   send_last_modified
   long   send_expires
   int   expires_set
   int   handle_last_modified_since
http_config
t_conf_opt flt_http_config []
t_handler_config flt_http_handlers []
t_module_config flt_http


Detailed Description

Author:
Christian Kruse, <cjk@wwwtech.de>
This plugin sends enhanced HTTP headers and handles If-Modified-Since

Definition in file flt_http.c.


Variable Documentation

t_module_config flt_http
 

Initial value:

 {
  flt_http_config,
  flt_http_handlers,
  flt_http_validate,
  flt_http_lm,
  flt_http_set_headers,
  NULL
}

Definition at line 373 of file flt_http.c.

t_conf_opt flt_http_config[]
 

Initial value:

 {
  { "SendLastModified",        flt_http_handle_command, NULL },
  { "SendExpires",             flt_http_handle_command, NULL },
  { "HandleLastModifiedSince", flt_http_handle_command, NULL },
  { NULL, NULL, NULL }
}

Definition at line 361 of file flt_http.c.

t_handler_config flt_http_handlers[]
 

Initial value:

 {
  { CONNECT_INIT_HANDLER, flt_http_execute },
  { 0, NULL }
}

Definition at line 368 of file flt_http.c.


Generated on Sun Apr 25 16:37:39 2004 for Classic Forum by doxygen 1.3.5