We missed adding it when we moved View[] to the content negotiation. It
will be back in for 0.14, but for now you can write it to the
context.Response.Cookies
On Saturday, November 10, 2012 11:46:08 PM UTC, Andreas Håkansson wrote:
> We missed adding it when we moved View[] to the content negotiation. It > will be back in for 0.14, but for now you can write it to the > context.Response.Cookies
> Sorry about this =(
> On Sat, Nov 10, 2012 at 12:29 AM, Fran Hoey <fr...@bluejumper.com<javascript:>
> > wrote:
>> Hello,
>> I need to add a cookie to the response whilst returning a view, looking >> at internet examples I should be able to do this:
>> var vw = View["name", model];
>> vw.AddCookie("name", "value");
>> but I dont have the AddCookie method?
>> I'm using Nancy 0.13 has it been moved? Or am I missing an extensions >> namespace?
The only thing I can think of is building Nancy from source and using that
until we get 0.14 out (which should be within a week or so). If you build
using the rake file (there are instructions in the root of the repository)
then you can use the "nuget_package" task and it will produce local nugets
for you and you can just set up a nuget source on your machine, from inside
Visual Studio, and use that to update to the local nugets.. that way you
don't have to strip the nuget stuff in your source
On Sun, Nov 11, 2012 at 10:35 PM, Fran Hoey <f...@bluejumper.com> wrote:
> Andreas,
> Thank you, but Context.Response is null??
> Thanks
> Fran
> On Saturday, November 10, 2012 11:46:08 PM UTC, Andreas Håkansson wrote:
>> We missed adding it when we moved View[] to the content negotiation. It
>> will be back in for 0.14, but for now you can write it to the
>> context.Response.Cookies
>> Sorry about this =(
>> On Sat, Nov 10, 2012 at 12:29 AM, Fran Hoey <fr...@bluejumper.com> wrote:
>>> Hello,
>>> I need to add a cookie to the response whilst returning a view, looking
>>> at internet examples I should be able to do this:
>>> var vw = View["name", model];
>>> vw.AddCookie("name", "value");
>>> but I dont have the AddCookie method?
>>> I'm using Nancy 0.13 has it been moved? Or am I missing an extensions
>>> namespace?
On Tuesday, November 13, 2012 7:02:12 AM UTC, Andreas Håkansson wrote:
> Oh yeah =/
> The only thing I can think of is building Nancy from source and using that > until we get 0.14 out (which should be within a week or so). If you build > using the rake file (there are instructions in the root of the repository) > then you can use the "nuget_package" task and it will produce local nugets > for you and you can just set up a nuget source on your machine, from inside > Visual Studio, and use that to update to the local nugets.. that way you > don't have to strip the nuget stuff in your source
> Sorry about this =/
> On Sun, Nov 11, 2012 at 10:35 PM, Fran Hoey <fr...@bluejumper.com<javascript:>
> > wrote:
>> Andreas,
>> Thank you, but Context.Response is null??
>> Thanks
>> Fran
>> On Saturday, November 10, 2012 11:46:08 PM UTC, Andreas Håkansson wrote:
>>> We missed adding it when we moved View[] to the content negotiation. It >>> will be back in for 0.14, but for now you can write it to the >>> context.Response.Cookies
>>> Sorry about this =(
>>> On Sat, Nov 10, 2012 at 12:29 AM, Fran Hoey <fr...@bluejumper.com>wrote:
>>>> Hello,
>>>> I need to add a cookie to the response whilst returning a view, looking >>>> at internet examples I should be able to do this:
>>>> var vw = View["name", model];
>>>> vw.AddCookie("name", "value");
>>>> but I dont have the AddCookie method?
>>>> I'm using Nancy 0.13 has it been moved? Or am I missing an extensions >>>> namespace?