Hi all, I'd like to introduce a new feature to django urlresolver.
Currently, django urlresolver can only handle the path_info field of request object.
code from django.core.handlers.base.BaseHandler.get_response
callback, callback_args, callback_kwargs = resolver.resolve(request.path_info)
I'd like to pass the entire request object to urlresolver so that I can implement more
complex url resolving logic.For example:
* base on path and http method
* base on path and http header (such as User-Agent)
I'd like to make a demo if you agree with my idea.
At last, forgive my bad English.