File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / response.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:47 2013 UTC (11 years, 2 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

#ifndef _RESPONSE_H_
#define _RESPONSE_H_

#include "server.h"

#include <time.h>

int http_response_parse(server *srv, connection *con);
int http_response_write_header(server *srv, connection *con);

int response_header_insert(server *srv, connection *con, const char *key, size_t keylen, const char *value, size_t vallen);
int response_header_overwrite(server *srv, connection *con, const char *key, size_t keylen, const char *value, size_t vallen);
int response_header_append(server *srv, connection *con, const char *key, size_t keylen, const char *value, size_t vallen);

handler_t http_response_prepare(server *srv, connection *con);
int http_response_redirect_to_directory(server *srv, connection *con);
int http_response_handle_cachable(server *srv, connection *con, buffer * mtime);

buffer * strftime_cache_get(server *srv, time_t last_mod);
#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>