Sha256: 245b7fd77aab7b12ef2a68655b2b6dd38b22c5b51168a6680784e3f1322dfe4a

Contents?: true

Size: 617 Bytes

Versions: 33

Compression:

Stored size: 617 Bytes

Contents

module HTTPX
  module Plugins::Cookies
    class Jar
      type cookie = Cookie | Array[[String, String, cookie_attributes]] | Array[[String, String]] | cookie_attributes

      include Enumerable[Cookie]

      @cookies: Array[Cookie]

      def parse: (String set_cookie) -> void

      def add: (Cookie name, ?String path) -> void

      def []: (uri) -> Array[Cookie]

      def each: (?uri?) { (Cookie) -> void } -> void
              | (?uri?) -> Enumerable[Cookie]

      def merge: (_Each[cookie] cookies) -> instance

      private

      def initialize: (?_Each[cookie] cookies) -> untyped
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/plugins/cookies/jar.rbs
httpx-1.3.3 sig/plugins/cookies/jar.rbs
httpx-1.3.2 sig/plugins/cookies/jar.rbs
httpx-1.3.1 sig/plugins/cookies/jar.rbs
httpx-1.3.0 sig/plugins/cookies/jar.rbs
httpx-1.2.6 sig/plugins/cookies/jar.rbs
httpx-1.2.4 sig/plugins/cookies/jar.rbs
httpx-1.2.3 sig/plugins/cookies/jar.rbs
httpx-1.2.2 sig/plugins/cookies/jar.rbs
httpx-1.2.1 sig/plugins/cookies/jar.rbs
httpx-1.2.0 sig/plugins/cookies/jar.rbs
httpx-1.1.5 sig/plugins/cookies/jar.rbs
httpx-1.1.4 sig/plugins/cookies/jar.rbs
httpx-1.1.3 sig/plugins/cookies/jar.rbs
httpx-1.1.2 sig/plugins/cookies/jar.rbs
httpx-1.1.1 sig/plugins/cookies/jar.rbs
httpx-1.1.0 sig/plugins/cookies/jar.rbs
httpx-1.0.2 sig/plugins/cookies/jar.rbs
httpx-0.24.7 sig/plugins/cookies/jar.rbs
httpx-1.0.1 sig/plugins/cookies/jar.rbs