Sha256: 0e08c20ef728013f2ae1c8c61342c0e7d3e6760852ebcc46ddf8a6486c7ca3cf

Contents?: true

Size: 1.12 KB

Versions: 22

Compression:

Stored size: 1.12 KB

Contents

module HTTPX
  module Plugins::Cookies
    type cookie_attributes = Hash[Symbol | String, top]

    class Cookie
      include Comparable

      MAX_LENGTH: Integer

      attr_reader domain: DomainName?

      attr_reader path: String

      attr_reader name: String

      attr_reader value: String?

      attr_reader created_at: Time

      def path=: (string) -> void

      def domain=: (string) -> void

      def expires: () -> Time?

      def expired?: () -> bool
                  | (Time) -> bool

      def cookie_value: () -> String
      alias to_s cookie_value

      def valid_for_uri?: (uri) -> bool

      def self.new: (Cookie) -> untyped
                    | (cookie_attributes) -> untyped
                    | (String, String) -> untyped
                    | (String, String, cookie_attributes) -> untyped

      def self.path_match?: (String, String) -> bool

      private

      def initialize: (cookie_attributes) -> untyped
                    | (String, String) -> untyped
                    | (String, String, cookie_attributes?) -> untyped
      
      def acceptable_from_uri?: (uri) -> bool
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
httpx-0.15.4 sig/plugins/cookies/cookie.rbs
httpx-0.15.3 sig/plugins/cookies/cookie.rbs
httpx-0.15.2 sig/plugins/cookies/cookie.rbs
httpx-0.15.1 sig/plugins/cookies/cookie.rbs
httpx-0.15.0 sig/plugins/cookies/cookie.rbs
httpx-0.14.5 sig/plugins/cookies/cookie.rbs
httpx-0.14.4 sig/plugins/cookies/cookie.rbs
httpx-0.14.3 sig/plugins/cookies/cookie.rbs
httpx-0.14.2 sig/plugins/cookies/cookie.rbs
httpx-0.14.1 sig/plugins/cookies/cookie.rbs
httpx-0.14.0 sig/plugins/cookies/cookie.rbs
httpx-0.13.2 sig/plugins/cookies/cookie.rbs
httpx-0.13.1 sig/plugins/cookies/cookie.rbs
httpx-0.13.0 sig/plugins/cookies/cookie.rbs
httpx-0.12.0 sig/plugins/cookies/cookie.rbs
httpx-0.11.3 sig/plugins/cookies/cookie.rbs
httpx-0.11.2 sig/plugins/cookies/cookie.rbs
httpx-0.11.1 sig/plugins/cookies/cookie.rbs
httpx-0.11.0 sig/plugins/cookies/cookie.rbs
httpx-0.10.2 sig/plugins/cookies/cookie.rbs