Add more columns to match_entry
This commit is contained in:
parent
793de786b7
commit
c19186ab77
1 changed files with 8 additions and 2 deletions
10
include/r3.h
10
include/r3.h
|
@ -58,9 +58,15 @@ struct _edge {
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
str_array * vars;
|
str_array * vars;
|
||||||
char * path; // dispatched path
|
char * path; // current path to dispatch
|
||||||
int path_len;
|
int path_len; // the length of the current path
|
||||||
void * route_ptr; // route ptr
|
void * route_ptr; // route ptr
|
||||||
|
int request_method; // current request method
|
||||||
|
char * host; // the request host
|
||||||
|
int host_len;
|
||||||
|
|
||||||
|
char * remote_addr;
|
||||||
|
int remote_addr_len;
|
||||||
} match_entry;
|
} match_entry;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue