marcelklehr/tivoka — pull request #26 by vaab (2012-08-09 11:17:31+00:00)
Title: Storing response headers and setting request headers

Hi,

This is the followup of my previous pull request concerning the Set-Cookie mecanism.

Unfortunately, following correctly Set-Cookie mecanism is a lot of hassle and require parsing the Set-Cookie line(s) and check cookie paths and expiration times (cf: http://tools.ietf.org/html/rfc6265#section-4.1.2). I know I won't need that much coding with my current needs.

But nevertheless, this code is what I can contribute for now: a small functionality allowing to access the response headers and setting the request headers. This would allow me (and hopefully other people) to use tivoka in environment that need some headers fiddling (as Cookie management would require for example).

I'm not sure to reach your developpment standards but did my best ;). Any comments are welcome.

Valentin Lab