Sha256: 60081b5576b32bf35239970806270beaf2111cfa06d91f97c6c92b723d934125

Contents?: true

Size: 875 Bytes

Versions: 21

Compression:

Stored size: 875 Bytes

Contents

module HTTPX
  module Plugins
    module ResponseCache
      CACHEABLE_VERBS: Array[Symbol]

      def self?.cacheable_request?: (Request request) -> bool
      def self?.cacheable_response?: (response response) -> bool
      def self?.cached_response?: (response response) -> bool

      class Store
        @store: Hash[URI::Generic, Response]

        def lookup: (URI::Generic uri) -> Response?

        def cached?: (URI::Generic uri) -> bool

        def cache: (URI::Generic uri, Response response) -> void

        def prepare: (Request request) -> void
      end

      module InstanceMethods
        @response_cache: Store

        def clear_response_cache: () -> void
      end

      module ResponseMethods
        def copy_from_cached: (Response other) -> void
      end
    end

    type sessionResponseCache = Session & ResponseCache::InstanceMethods
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
httpx-0.20.3 sig/plugins/response_cache.rbs
httpx-0.20.2 sig/plugins/response_cache.rbs
httpx-0.20.1 sig/plugins/response_cache.rbs
httpx-0.20.0 sig/plugins/response_cache.rbs
httpx-0.19.8 sig/plugins/response_cache.rbs
httpx-0.19.7 sig/plugins/response_cache.rbs
httpx-0.19.6 sig/plugins/response_cache.rbs
httpx-0.19.5 sig/plugins/response_cache.rbs
httpx-0.19.4 sig/plugins/response_cache.rbs
httpx-0.19.3 sig/plugins/response_cache.rbs
httpx-0.19.2 sig/plugins/response_cache.rbs
httpx-0.19.1 sig/plugins/response_cache.rbs
httpx-0.19.0 sig/plugins/response_cache.rbs
httpx-0.18.7 sig/plugins/response_cache.rbs
httpx-0.18.6 sig/plugins/response_cache.rbs
httpx-0.18.5 sig/plugins/response_cache.rbs
httpx-0.18.4 sig/plugins/response_cache.rbs
httpx-0.18.3 sig/plugins/response_cache.rbs
httpx-0.18.2 sig/plugins/response_cache.rbs
httpx-0.18.1 sig/plugins/response_cache.rbs