Add 'get server <backend>/<request>' runtime api

Change-Id: Idc57f080703b5da7e6dac96874d20e2abf99e609
diff --git a/include/haproxy/backend.h b/include/haproxy/backend.h
index 8a763bf..0e2d75f 100644
--- a/include/haproxy/backend.h
+++ b/include/haproxy/backend.h
@@ -48,6 +48,7 @@
 void recount_servers(struct proxy *px);
 void update_backend_weight(struct proxy *px);
 int be_lastsession(const struct proxy *be);
+struct server *get_server_uh(struct proxy *px, char *uri, int uri_len, const struct server *avoid);
 
 /* Returns number of usable servers in backend */
 static inline int be_usable_srv(struct proxy *be)
diff --git a/include/haproxy/proxy.h b/include/haproxy/proxy.h
index 8a2a5c8..5f742e3 100644
--- a/include/haproxy/proxy.h
+++ b/include/haproxy/proxy.h
@@ -70,6 +70,8 @@
                               const struct proxy *defproxy);
 int get_backend_server(const char *bk_name, const char *sv_name,
 		       struct proxy **bk, struct server **sv);
+int test_backend_server(const char *bk_name, char *uri,
+		struct proxy **bk, struct server **sv);
 void proxy_capture_error(struct proxy *proxy, int is_back,
 			 struct proxy *other_end, enum obj_type *target,
 			 const struct session *sess,