SchlenkR/FsHttp

Provide convenient way for getting response cookies

Opened this issue · 1 comments

Provide convenient way for getting response cookies
let setCookieKey = "Set-Cookie"
let cookies (response: Response) =
    response.headers 
    |> Seq.filter (fun h -> h.Key = setCookieKey)
    |> Seq.map (fun h -> h.Value)
    |> Seq.toList