You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd2/include/lighttpd/request.h

54 lines
969 B

15 years ago
#ifndef _LIGHTTPD_REQUEST_H_
#define _LIGHTTPD_REQUEST_H_
#ifndef _LIGHTTPD_BASE_H_
#error Please include <lighttpd/base.h> instead of this file
#endif
15 years ago
struct request_uri {
GString *raw;
15 years ago
GString *scheme;
GString *authority;
15 years ago
GString *path;
GString *query;
GString *host; /* without userinfo and port */
15 years ago
};
15 years ago
struct physical {
15 years ago
GString *path;
GString *basedir;
GString *doc_root;
GString *rel_path;
GString *pathinfo;
15 years ago
gint64 size;
15 years ago
};
struct request {
http_method_t http_method;
GString *http_method_str;
http_version_t http_version;
request_uri uri;
http_headers *headers;
15 years ago
/* Parsed headers: */
goffset content_length;
};
LI_API void request_init(request *req);
LI_API void request_reset(request *req);
LI_API void request_clear(request *req);
LI_API gboolean request_validate_header(connection *con);
LI_API void physical_init(physical *phys);
LI_API void physical_reset(physical *phys);
LI_API void physical_clear(physical *phys);
15 years ago
#endif