summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_proxy.h
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2020-04-11 23:19:08 +0200
committerEric Covener <covener@apache.org>2020-04-11 23:19:08 +0200
commita545608f8355fba22eee1edf86a63f0be785f595 (patch)
treeda09c4acb0762a1b898ad342de5c8e2837aebe9f /modules/proxy/mod_proxy.h
parentIssue a warning for non-existent directories when running configtest (diff)
downloadapache2-a545608f8355fba22eee1edf86a63f0be785f595.tar.xz
apache2-a545608f8355fba22eee1edf86a63f0be785f595.zip
PR63628: individual status codes for ProxyErrorOverride.
Support specifying the http status codes to be considered by ProxyErrorOverride Submitted By: Martin Drößler <mail martindroessler.de> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876404 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/mod_proxy.h')
-rw-r--r--modules/proxy/mod_proxy.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/proxy/mod_proxy.h b/modules/proxy/mod_proxy.h
index 7d501bf5d0..bb47d9a01f 100644
--- a/modules/proxy/mod_proxy.h
+++ b/modules/proxy/mod_proxy.h
@@ -201,7 +201,6 @@ typedef struct {
unsigned int ppinherit_set:1;
} proxy_server_conf;
-
typedef struct {
const char *p; /* The path */
ap_regex_t *r; /* Is this a regex? */
@@ -242,6 +241,8 @@ typedef struct {
unsigned int forward_100_continue:1;
unsigned int forward_100_continue_set:1;
+
+ apr_array_header_t *error_override_codes;
} proxy_dir_conf;
/* if we interpolate env vars per-request, we'll need a per-request
@@ -1279,6 +1280,15 @@ PROXY_DECLARE(int) ap_proxy_is_socket_connected(apr_socket_t *socket);
int ap_proxy_lb_workers(void);
/**
+ * Returns 1 if a response with the given status should be overridden.
+ *
+ * @param conf proxy directory configuration
+ * @param code http status code
+ * @return 1 if code is considered an error-code, 0 otherwise
+ */
+PROXY_DECLARE(int) ap_proxy_should_override(proxy_dir_conf *conf, int code);
+
+/**
* Return the port number of a known scheme (eg: http -> 80).
* @param scheme scheme to test
* @return port number or 0 if unknown