Sha256: 628739d49076bab693d2bc4614b919679ece790eb3bf1b6e83a02ccb3e628b7a

Contents?: true

Size: 677 Bytes

Versions: 22

Compression:

Stored size: 677 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) -> void

      def add: (Cookie) -> void
             | (Cookie, String) -> void

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

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

      def initialize: () -> void
                    | (_Each[cookie]) -> untyped
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
httpx-0.10.1 sig/plugins/cookies/jar.rbs
httpx-0.10.0 sig/plugins/cookies/jar.rbs