> Is that lowlevel Lift code or supposed to be how you use the API?
>
> If it's the latter I think there's some improvements that can be done ;)
Thats lift framework code :-)
Like i said, i've not used it before, but I believe you'd then do
something like this in Boot.scala:
LiftRules.determineContentType = {
case (_, Full(accept)) if LiftRules.useXhtmlMimeType &&
accept.toLowerCase.contains("application/xhtml+xml") => "application/
xhtml+xml"
case (Full(RequestState(_,"json",_)), Full(accept)) => "text/x-json"
case _ => "text/html"
}
Obviously as your getting a RequestState passed to the function, you
can do a whole bunch of matching. NB: I've not tested this code, its
just from the tope of my head but I think it should work :-)
Cheers
Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---