httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: svn commit: r1406719 - in /httpd/httpd/trunk: CHANGES docs/log-message-tags/next-number include/http_core.h server/core.c server/protocol.c
Date Wed, 07 Nov 2012 18:44:35 GMT
On 07 Nov 2012, at 8:12 PM, Stefan Fritsch <sf@sfritsch.de> wrote:

> Any suggestions for a syntax? Maybe:
> 
> HttpProtocol 1.1	# only 1.1
> HttpProtocol 1.0-	# 1.0 and above
> HttpProtocol 1.0-1.1	# 1.0 and 1.1
> HttpProtocol -1.0	# 1.0 and below
> 
> We could then still add additional flags like +/- strict.

The "-" in front of something means "switch this off" in other directives, I suspect it might
cause confusion.

Would it make sense to try use globbing (apr_fnmatch)? Perhaps multiple options separated
by commas, or an ITERATE separated by spaces?

HttpProtocol *	# any version
HttpProtocol 1.1	# only 1.1
HttpProtocol 1.*	# 1.0 and above
HttpProtocol 1.0,1.1	# 1.0 and 1.1
HttpProtocol 0.*,1.0	# 1.0 and below

RFC2616 defines the version as follows:

       HTTP-Version   = "HTTP" "/" 1*DIGIT "." 1*DIGIT

We could potentially also add a check to make sure that "DIGIT" part is checked to be actual
digits, and reject it otherwise.

Regards,
Graham
--


Mime
View raw message