Add route_info structure
This commit is contained in:
parent
c19186ab77
commit
563278fba8
1 changed files with 14 additions and 0 deletions
14
include/r3.h
14
include/r3.h
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue