Tungsten v0.1.0 Tungsten.CDP.CacheStorage View Source

CacheStorage

This domain has no documentation

Link to this section Summary

Link to this section Types

Link to this type

cdp_cache_id_type() View Source
cdp_cache_id_type() :: String.t()

CacheStorage.CacheId

Unique identifier of the Cache object.

Link to this type

cdp_cache_type() View Source
cdp_cache_type() :: %{
  cache_id: cdp_cache_id_type(),
  security_origin: String.t(),
  cache_name: String.t()
}

CacheStorage.Cache

Cache identifier.

Link to this type

cdp_cached_response_type() View Source
cdp_cached_response_type() :: %{body: String.t()}

CacheStorage.CachedResponse

Cached response

Link to this type

cdp_cached_response_type_type() View Source
cdp_cached_response_type_type() ::
  :opaque_redirect | :opaque_response | :error | :default | :cors | :basic

CacheStorage.CachedResponseType

type of HTTP response cached

Link to this type

cdp_data_entry_type() View Source
cdp_data_entry_type() :: %{
  request_url: String.t(),
  request_method: String.t(),
  request_headers: [cdp_header_type()],
  response_time: integer() | float(),
  response_status: integer(),
  response_status_text: String.t(),
  response_type: cdp_cached_response_type_type(),
  response_headers: [cdp_header_type()]
}

CacheStorage.DataEntry

Data entry.

Link to this type

cdp_header_type() View Source
cdp_header_type() :: %{name: String.t(), value: String.t()}

CacheStorage.Header

This type has no documentation

Link to this section Functions

Link to this function

delete_cache(session, parameters, options \\ []) View Source
delete_cache(
  GenServer.server(),
  %{cache_id: cdp_cache_id_type()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

CacheStorage.deleteCache

Deletes a cache.

Link to this function

delete_entry(session, parameters, options \\ []) View Source
delete_entry(
  GenServer.server(),
  %{cache_id: cdp_cache_id_type(), request: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

CacheStorage.deleteEntry

Deletes a cache entry.

Link to this function

request_cache_names(session, parameters, options \\ []) View Source
request_cache_names(
  GenServer.server(),
  %{security_origin: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, %{caches: [cdp_cache_type()]}} | {:error, term()}

CacheStorage.requestCacheNames

Requests cache names.

Link to this function

request_cached_response(session, parameters, options \\ []) View Source
request_cached_response(
  GenServer.server(),
  %{
    cache_id: cdp_cache_id_type(),
    request_url: String.t(),
    request_headers: [cdp_header_type()]
  },
  Tungsten.Connection.exec_options()
) :: {:ok, %{response: cdp_cached_response_type()}} | {:error, term()}

CacheStorage.requestCachedResponse

Fetches cache entry.

Link to this function

request_entries(session, parameters, options \\ []) View Source
request_entries(
  GenServer.server(),
  %{
    :cache_id => cdp_cache_id_type(),
    :skip_count => integer(),
    :page_size => integer(),
    optional(:path_filter) => String.t()
  },
  Tungsten.Connection.exec_options()
) ::
  {:ok,
   %{
     cache_data_entries: [cdp_data_entry_type()],
     return_count: integer() | float()
   }}
  | {:error, term()}

CacheStorage.requestEntries

Requests data from cache.