On Mon, 2012-02-20 at 06:55 -0800, Zane wrote: > Sample: > @view_config(permission = 'view',route_name='addUser', > renderer='json', custom_predicates=(allowed_methods('POST'),)) > def add(request): > post_data = request.json_body > email = post_data['email'] > headers = remember(request, email, max_age='86400') > > > /* How to response this header together*/ > return {'succeed':True} >
I think this is what you're asking: request.response.headers['Foo'] = 'bar' - C > > Thanks > Zane > -- > You received this message because you are subscribed to the Google > Groups "pylons-devel" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/pylons-devel/-/D5fWCOMEDOYJ. > To post to this group, send email to pylons-devel@googlegroups.com. > To unsubscribe from this group, send email to pylons-devel > +unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-devel?hl=en. -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.