2008-08-06 18:46:42 +00:00
|
|
|
#ifndef _LIGHTTPD_RESPONSE_H_
|
|
|
|
#define _LIGHTTPD_RESPONSE_H_
|
|
|
|
|
2008-10-28 21:11:50 +00:00
|
|
|
#ifndef _LIGHTTPD_BASE_H_
|
2008-11-16 20:33:53 +00:00
|
|
|
#error Please include <lighttpd/base.h> instead of this file
|
2008-10-28 21:11:50 +00:00
|
|
|
#endif
|
2008-08-06 18:46:42 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
struct liResponse {
|
|
|
|
liHttpHeaders *headers;
|
2008-08-13 00:18:35 +00:00
|
|
|
gint http_status;
|
2009-07-08 19:06:07 +00:00
|
|
|
liTransferEncoding transfer_encoding;
|
2008-08-06 18:46:42 +00:00
|
|
|
};
|
|
|
|
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API void li_response_init(liResponse *resp);
|
|
|
|
LI_API void li_response_reset(liResponse *resp);
|
|
|
|
LI_API void li_response_clear(liResponse *resp);
|
2008-08-06 18:46:42 +00:00
|
|
|
|
2009-09-08 17:09:08 +00:00
|
|
|
LI_API gboolean li_response_send_headers(liConnection *con);
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API void li_response_send_error_page(liConnection *con);
|
2008-08-06 18:46:42 +00:00
|
|
|
|
|
|
|
#endif
|