Re: Media types with parameters (@cherrypy.tools.accept)

Aaron Dalton <[email protected]> Fri, 4 Aug 2017 16:01:11 -0700 (PDT)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
Sounds good, thanks! I wasn't sure if there was some formal interface I 
wasn't aware of.
Aaron

On Friday, 4 August 2017 11:17:53 UTC-6, Michiel Overtoom wrote:
>
> Hi Aaron, 
>
> I hope the following code helps. The version number can be parsed out of 
> the 'Accept' header which is available in the cherrypy.request.headers 
> mapping. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.