Hello,

Before we can consider some code for inclusion into Django, you must 
demonstrate widespread use. Since support was announced in Firefox just two 
days ago, it’s too early to have that discussion. We don’t even know what IE 
will do. Maybe it'll just kill this initiative like it killed DNT.

In the mean time, I would encourage you to figure out the best API for taking 
advantage of this header, build a third-party module, and publish it to PyPI.

-- 
Aymeric.



On 23 juil. 2014, at 15:51, s4mm...@gmail.com wrote:

> Matthew, thank you, great idea.
> There are already many standard decorators in django.views.decorators. Maybe 
> the one that redirects to a particular page or just returns 403 HTTP response 
> in case safe browsing is requested can be useful as well.
> 
> 
> среда, 23 июля 2014 г., 17:20:10 UTC+4 пользователь Matthew Lauber написал:
> Possibly, write it up as a decorator?
> 
> 
> On Wed, Jul 23, 2014 at 9:05 AM, <s4m...@gmail.com> wrote:
> Florian, thank you for your answer.
> I'm totally fine with Request.META['prefer'], it seems to be a 
> straightforward solution. However, checking this dictionary in each view that 
> supports this feature and also adding "Vary: Prefer" to response headers 
> seems to be a little odd and inconvinient. I thought maybe there might be 
> some better solution.
> 
> 
> среда, 23 июля 2014 г., 16:34:32 UTC+4 пользователь Florian Apolloner написал:
> Hi,
> 
> On Wednesday, July 23, 2014 1:58:26 PM UTC+2, S4mmael wrote:
> It would be really nice to have some mechanism intended to work with this 
> header in Django. A kind of miidleware or a decorator maybe.
> 
> What's wrong with "if request.META.get('prefer') == 'safe'"?
> 
> Cheers,
> Florian 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-develop...@googlegroups.com.
> To post to this group, send email to django-d...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/0ff9ab17-62bf-40e6-9a21-e8191323aa00%40googlegroups.com.
> 
> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/0f35c447-d449-4b04-94d2-f6c5e82a7ec2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/A30B2FFC-870B-4248-BDDE-E9132B5C8F63%40polytechnique.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to