2018-10-02 10:43:32 -04:00
|
|
|
/*
|
2020-06-04 05:40:28 -04:00
|
|
|
* include/haproxy/http_rules.h
|
2018-10-02 10:43:32 -04:00
|
|
|
* This file contains "http" rules definitions
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2000-2018 Willy Tarreau - w@1wt.eu
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation, version 2.1
|
|
|
|
|
* exclusively.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
*/
|
|
|
|
|
|
2020-06-04 05:40:28 -04:00
|
|
|
#ifndef _HAPROXY_HTTP_RULES_H
|
|
|
|
|
#define _HAPROXY_HTTP_RULES_H
|
2018-10-02 10:43:32 -04:00
|
|
|
|
2020-06-09 03:07:15 -04:00
|
|
|
#include <haproxy/action-t.h>
|
2020-05-27 06:58:42 -04:00
|
|
|
#include <haproxy/api.h>
|
2020-05-27 12:01:47 -04:00
|
|
|
#include <haproxy/list.h>
|
2020-06-04 16:29:18 -04:00
|
|
|
#include <haproxy/proxy-t.h>
|
2018-10-02 10:43:32 -04:00
|
|
|
|
|
|
|
|
extern struct action_kw_list http_req_keywords;
|
|
|
|
|
extern struct action_kw_list http_res_keywords;
|
2020-01-22 03:26:35 -05:00
|
|
|
extern struct action_kw_list http_after_res_keywords;
|
2018-10-02 10:43:32 -04:00
|
|
|
|
|
|
|
|
struct act_rule *parse_http_req_cond(const char **args, const char *file, int linenum, struct proxy *proxy);
|
|
|
|
|
struct act_rule *parse_http_res_cond(const char **args, const char *file, int linenum, struct proxy *proxy);
|
2020-01-22 03:26:35 -05:00
|
|
|
struct act_rule *parse_http_after_res_cond(const char **args, const char *file, int linenum, struct proxy *proxy);
|
2023-05-11 04:30:27 -04:00
|
|
|
void http_free_redirect_rule(struct redirect_rule *rdr);
|
2018-10-02 10:43:32 -04:00
|
|
|
struct redirect_rule *http_parse_redirect_rule(const char *file, int linenum, struct proxy *curproxy,
|
|
|
|
|
const char **args, char **errmsg, int use_fmt, int dir);
|
|
|
|
|
|
2022-03-02 08:50:38 -05:00
|
|
|
void http_req_keywords_register(struct action_kw_list *kw_list);
|
|
|
|
|
void http_res_keywords_register(struct action_kw_list *kw_list);
|
|
|
|
|
void http_after_res_keywords_register(struct action_kw_list *kw_list);
|
2020-01-22 03:26:35 -05:00
|
|
|
|
2020-11-28 11:40:24 -05:00
|
|
|
struct action_kw *action_http_req_custom(const char *kw);
|
|
|
|
|
struct action_kw *action_http_res_custom(const char *kw);
|
|
|
|
|
struct action_kw *action_http_after_res_custom(const char *kw);
|
|
|
|
|
|
2020-06-04 05:40:28 -04:00
|
|
|
#endif /* _HAPROXY_HTTP_RULES_H */
|
2018-10-02 10:43:32 -04:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Local variables:
|
|
|
|
|
* c-indent-level: 8
|
|
|
|
|
* c-basic-offset: 8
|
|
|
|
|
* End:
|
|
|
|
|
*/
|