From 563278fba827f21133fac4c4c85a34d414230c6d Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 17 May 2014 18:57:36 +0800 Subject: [PATCH] Add route_info structure --- include/r3.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/r3.h b/include/r3.h index 69d761c..1fdf51f 100644 --- a/include/r3.h +++ b/include/r3.h @@ -69,6 +69,20 @@ typedef struct { int remote_addr_len; } match_entry; +typedef struct { + char * path; + int path_len; + + int request_methods; // can be (GET || POST) + + char * host; // required host name + int host_len; + + char * remote_addr_pattern; + int remote_addr_pattern_len; + +} route_info; + node * r3_tree_create(int cap);