Add route_info structure

This commit is contained in:
c9s 2014-05-17 18:57:36 +08:00
parent c19186ab77
commit 563278fba8

View file

@ -69,6 +69,20 @@ typedef struct {
int remote_addr_len; int remote_addr_len;
} match_entry; } 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); node * r3_tree_create(int cap);