adds support for the following options:
:cookies |
cookie jar for the session (can be a Hash, an Array, an instance of HTTPX::Plugins::Cookies::CookieJar) |
Public Instance methods
option_cookies(value)
[show source]
# File lib/httpx/plugins/cookies.rb 85 def option_cookies(value) 86 jar = value.is_a?(Jar) ? value : Jar.new(value) 87 88 merge_cookie_in_jar(@headers.delete("cookie"), jar) if defined?(@headers) && @headers.key?("cookie") 89 90 jar 91 end
option_headers(*)
[show source]
# File lib/httpx/plugins/cookies.rb 77 def option_headers(*) 78 value = super 79 80 merge_cookie_in_jar(value.delete("cookie"), @cookies) if defined?(@cookies) && value.key?("cookie") 81 82 value 83 end