Module: HTTPX::Plugins::Cookies::HeadersMethods

Defined in:
lib/httpx/plugins/cookies.rb

Instance Method Summary collapse

Instance Method Details



64
65
66
67
68
69
70
# File 'lib/httpx/plugins/cookies.rb', line 64

def set_cookie(cookies)
  return if cookies.empty?

  header_value = cookies.sort.join("; ")

  add("cookie", header_value)
end