Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miyagawa/faraday-cookie_jar
Client-side cookie management for Faraday
https://github.com/miyagawa/faraday-cookie_jar
Last synced: 1 day ago
JSON representation
Client-side cookie management for Faraday
- Host: GitHub
- URL: https://github.com/miyagawa/faraday-cookie_jar
- Owner: miyagawa
- License: mit
- Created: 2013-04-11T09:28:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T18:50:46.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T12:58:07.142Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 23.4 KB
- Stars: 76
- Watchers: 6
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-faraday - cookie_jar - support for HTTP cookies (Middleware)
README
# Faraday::CookieJar
Faraday middleware to manage client-side cookies
## Description
This gem is a piece of Faraday middleware that adds client-side Cookies management, using [http-cookie gem](https://github.com/sparklemotion/http-cookie).
## Installation
Add this line to your application's Gemfile:
gem 'faraday-cookie_jar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install faraday-cookie_jar
## Usage
```ruby
require 'faraday-cookie_jar'conn = Faraday.new(:url => "http://example.com") do |builder|
builder.use :cookie_jar
builder.adapter Faraday.default_adapter
endconn.get "/foo" # gets cookie
conn.get "/bar" # sends cookie
```## Author
Tatsuhiko Miyagawa