FsHttp icon indicating copy to clipboard operation
FsHttp copied to clipboard

Provide convenient way for getting response cookies

Open SchlenkR opened this issue 3 years ago • 1 comments

SchlenkR avatar Feb 22 '22 15:02 SchlenkR

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

SchlenkR avatar Feb 24 '22 12:02 SchlenkR