Module: HTTPX::Plugins::Cookies
- Defined in:
- lib/httpx/plugins/cookies.rb
Overview
This plugin implements a persistent cookie jar for the duration of a session.
It also adds a #cookies helper, so that you can pre-fill the cookies of a session.
Defined Under Namespace
Modules: HeadersMethods, InstanceMethods Classes: Store
Class Method Summary collapse
Class Method Details
.extra_options(options) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/httpx/plugins/cookies.rb', line 17 def self.() Class.new(.class) do def_option(:cookies) do || return if .is_a?(Store) Store.new() end end.new() end |
.load_dependencies ⇒ Object
64 65 66 |
# File 'lib/httpx/plugins/cookies.rb', line 64 def self.load_dependencies(*) require "http/cookie" end |