From c19186ab77af9f294490df2456f896c1b2e03ab3 Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 17 May 2014 18:56:13 +0800 Subject: [PATCH] Add more columns to match_entry --- include/r3.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/r3.h b/include/r3.h index 817a24b..69d761c 100644 --- a/include/r3.h +++ b/include/r3.h @@ -58,9 +58,15 @@ struct _edge { typedef struct { str_array * vars; - char * path; // dispatched path - int path_len; + char * path; // current path to dispatch + int path_len; // the length of the current path 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;