sig/plugins/cookies.rbs in httpx-0.15.4 vs sig/plugins/cookies.rbs in httpx-0.16.0

- old
+ new

@@ -1,15 +1,14 @@ module HTTPX module Plugins module Cookies - type jar = Jar | _Each[cookies] + type jar = Jar | _Each[Jar::cookie] interface _CookieOptions def cookies: () -> Jar? - def cookies=: (jar) -> Jar end - + def self.extra_options: (Options) -> (Options & _CookieOptions) module InstanceMethods def cookies: () -> Jar end @@ -17,9 +16,9 @@ module HeadersMethods def set_cookie: (Array[Cookie]) -> void end end - type sessionCookies = Session & Plugins::Cookies::InstanceMethods - type headersCookies = Headers & Plugins::Cookies::HeadersMethods + type sessionCookies = Session & Cookies::InstanceMethods + type headersCookies = Headers & Cookies::HeadersMethods end end