]> granicus.if.org Git - apache/blobdiff - modules/proxy/mod_proxy.h
We were not being consistent between http and others
[apache] / modules / proxy / mod_proxy.h
index 09384cf3ef96a3fa1c2379e6b483946cd302f823..25b19b4947c231a15e52e8627a45914a7e8fb2cf 100644 (file)
@@ -1014,6 +1014,13 @@ PROXY_DECLARE(int) ap_proxy_is_socket_connected(apr_socket_t *socket);
  */
 int ap_proxy_lb_workers(void);
 
+/**
+ * Return the port number of a known scheme (eg: http -> 80).
+ * @param scheme        scheme to test
+ * @return              port number or 0 if unknown
+ */
+PROXY_DECLARE(apr_port_t) ap_proxy_port_of_scheme(const char *scheme);
+
 extern module PROXY_DECLARE_DATA proxy_module;
 
 #endif /*MOD_PROXY_H*/