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.0.0 sig/plugins/cookies/jar.rbs
httpx-0.24.6 sig/plugins/cookies/jar.rbs
httpx-0.24.5 sig/plugins/cookies/jar.rbs
httpx-0.24.4 sig/plugins/cookies/jar.rbs
httpx-0.24.3 sig/plugins/cookies/jar.rbs
httpx-0.24.2 sig/plugins/cookies/jar.rbs
httpx-0.24.1 sig/plugins/cookies/jar.rbs
httpx-0.24.0 sig/plugins/cookies/jar.rbs
httpx-0.23.4 sig/plugins/cookies/jar.rbs
httpx-0.23.3 sig/plugins/cookies/jar.rbs
httpx-0.23.2 sig/plugins/cookies/jar.rbs
httpx-0.23.1 sig/plugins/cookies/jar.rbs
httpx-0.23.0 sig/plugins/cookies/jar.rbs