Sha256: cbdcf959c5411c3c0db2a4b4c346ca7405a5268016e5a53436b4c017cd180910

Contents?: true

Size: 609 Bytes

Versions: 11

Compression:

Stored size: 609 Bytes

Contents

module HTTPX
  module Plugins
    module Cookies
      type jar = Jar | _Each[Jar::cookie]

      interface _CookieOptions
        def cookies: () -> Jar?

        def merge_cookie_in_jar: (Array[String] cookies, Jar jar) -> void
      end

      def self.extra_options: (Options) -> (Options & _CookieOptions)

      module InstanceMethods
        def cookies: () -> Jar
      end

      module HeadersMethods
        def set_cookie: (Array[Cookie]) -> void
      end
    end

    type sessionCookies = Session & Cookies::InstanceMethods
    type headersCookies = Headers & Cookies::HeadersMethods
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/plugins/cookies.rbs
httpx-1.3.3 sig/plugins/cookies.rbs
httpx-1.3.2 sig/plugins/cookies.rbs
httpx-1.3.1 sig/plugins/cookies.rbs
httpx-1.3.0 sig/plugins/cookies.rbs
httpx-1.2.6 sig/plugins/cookies.rbs
httpx-1.2.4 sig/plugins/cookies.rbs
httpx-1.2.3 sig/plugins/cookies.rbs
httpx-1.2.2 sig/plugins/cookies.rbs
httpx-1.2.1 sig/plugins/cookies.rbs
httpx-1.2.0 sig/plugins/cookies.rbs