httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Marr <gr...@alum.wpi.edu>
Subject Re: [PATCH] optimization for setting of allowed methods
Date Thu, 06 Sep 2001 16:29:40 GMT
At 11:50 AM 09/06/2001, Brian Pane wrote:
>This patch eliminates some run-time conversion of method names to 
>numbers (something that I noticed while looking through function 
>call profiles).
>
>RCS file: /home/cvspublic/httpd-2.0/server/core.c,v
>-    ap_allow_methods(r, MERGE_ALLOW, "GET", "OPTIONS", "POST", NULL);
>+    ap_allow_standard_methods(r, MERGE_ALLOW, M_GET, M_OPTIONS, 
>M_POST, -1);
>
>RCS file: 
>/home/cvspublic/httpd-2.0/modules/mappers/mod_negotiation.c,v
>-    ap_allow_methods(r, REPLACE_ALLOW, "GET", "OPTIONS", "POST", 
>NULL);
>+    ap_allow_standard_methods(r, REPLACE_ALLOW, M_GET, M_OPTIONS, 
>M_POST, -1);

Weren't these "method numbers" recently removed so that there are no 
"standard" methods, and all the methods are added the same way at run 
time?

-- 
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"


Mime
View raw message