Sha256: 91acaa652e93210a7dab639273290bed2904ccd00604f9518cae19517bff04a9

Contents?: true

Size: 1.01 KB

Versions: 67

Compression:

Stored size: 1.01 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) -> instance
                    | (cookie_attributes) -> instance
                    | (_ToS, _ToS, ?cookie_attributes) -> instance

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

      private

      def initialize: (cookie_attributes) -> untyped
                    | (_ToS, _ToS, ?cookie_attributes) -> untyped

      def acceptable_from_uri?: (uri) -> bool
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
httpx-1.0.0 sig/plugins/cookies/cookie.rbs
httpx-0.24.6 sig/plugins/cookies/cookie.rbs
httpx-0.24.5 sig/plugins/cookies/cookie.rbs
httpx-0.24.4 sig/plugins/cookies/cookie.rbs
httpx-0.24.3 sig/plugins/cookies/cookie.rbs
httpx-0.24.2 sig/plugins/cookies/cookie.rbs
httpx-0.24.1 sig/plugins/cookies/cookie.rbs
httpx-0.24.0 sig/plugins/cookies/cookie.rbs
httpx-0.23.4 sig/plugins/cookies/cookie.rbs
httpx-0.23.3 sig/plugins/cookies/cookie.rbs
httpx-0.23.2 sig/plugins/cookies/cookie.rbs
httpx-0.23.1 sig/plugins/cookies/cookie.rbs
httpx-0.23.0 sig/plugins/cookies/cookie.rbs
httpx-0.22.5 sig/plugins/cookies/cookie.rbs
httpx-0.22.4 sig/plugins/cookies/cookie.rbs
httpx-0.22.3 sig/plugins/cookies/cookie.rbs
httpx-0.22.2 sig/plugins/cookies/cookie.rbs
httpx-0.22.1 sig/plugins/cookies/cookie.rbs
httpx-0.22.0 sig/plugins/cookies/cookie.rbs
httpx-0.21.1 sig/plugins/cookies/cookie.rbs