Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (51 sloc) 1.936 kb
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4 *
5 * Authors:
6 * Alvaro Lopez Ortega <alvaro@alobbs.com>
7 *
920e20b @alobbs Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
2c39092 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2660 5dc97367-9…
alobbs authored
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
24
25 #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION)
26 # error "Only <cherokee/cherokee.h> can be included directly, this file may disappear or change contents."
27 #endif
28
29 #ifndef CHEROKEE_RULE_HEADER_H
30 #define CHEROKEE_RULE_HEADER_H
31
32 #include <cherokee/common.h>
33 #include <cherokee/buffer.h>
34 #include <cherokee/rule.h>
06511e3 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1413 5dc97367-9…
alobbs authored
35 #include <cherokee/header.h>
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
36 #include <cherokee/regex.h>
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
37 #include <cherokee/plugin_loader.h>
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
38
39 CHEROKEE_BEGIN_DECLS
40
e908f70 @alobbs Extends the 'Header' rule match to work in two different ways: the
alobbs authored
41 typedef enum {
42 rule_header_type_regex,
43 rule_header_type_provided
44 } cherokee_rule_header_type_t;
45
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
46 typedef struct {
e908f70 @alobbs Extends the 'Header' rule match to work in two different ways: the
alobbs authored
47 cherokee_rule_t rule;
48 cherokee_rule_header_type_t type;
49 cherokee_common_header_t header;
50 cherokee_buffer_t match;
51 void *pcre;
be8e030 @alobbs Extends the rule 'header' functionality so a regex can be matched
alobbs authored
52 cherokee_boolean_t complete_header;
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
53 } cherokee_rule_header_t;
54
55 #define RULE_HEADER(x) ((cherokee_rule_header_t *)(x))
56
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
57 void PLUGIN_INIT_NAME(header) (cherokee_plugin_loader_t *loader);
b0dd10b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1398 5dc97367-9…
alobbs authored
58 ret_t cherokee_rule_header_new (cherokee_rule_header_t **rule);
59
60 CHEROKEE_END_DECLS
61
62 #endif /* CHEROKEE_RULE_HEADER_H */
Something went wrong with that request. Please try again.