Low commit activity in last 3 years
Cookie jar middleware for Faraday
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 2.0
>= 12.3.3
~> 3.2

Runtime

>= 0.8.0
 Project Readme

Faraday::CookieJar

Faraday middleware to manage client-side cookies

Description

Note: This is a fork of miyagawa/faraday-cookie_jar and released the updated version to the rubygems as faraday-cookie_jar2

This gem is a piece of Faraday middleware that adds client-side Cookies management, using http-cookie gem.

Installation

Add this line to your application's Gemfile:

gem 'faraday-cookie_jar2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install faraday-cookie_jar2

Usage

require 'faraday-cookie_jar2'

conn = Faraday.new(:url => "http://example.com") do |builder|
  builder.use :cookie_jar
  builder.adapter Faraday.default_adapter
end

conn.get "/foo"  # gets cookie
conn.get "/bar"  # sends cookie

Author

Tatsuhiko Miyagawa