Tungsten v0.1.0 Tungsten.CDP.CacheStorage View Source
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()
View Source
cdp_cache_id_type() :: String.t()
cdp_cache_id_type() :: String.t()
Unique identifier of the Cache object.
Link to this type
cdp_cache_type()
View Source
cdp_cache_type()
View Source
cdp_cache_type() :: %{
cache_id: cdp_cache_id_type(),
security_origin: String.t(),
cache_name: String.t()
}
cdp_cache_type() :: %{
cache_id: cdp_cache_id_type(),
security_origin: String.t(),
cache_name: String.t()
}
Cache identifier.
Link to this type
cdp_cached_response_type()
View Source
cdp_cached_response_type()
View Source
cdp_cached_response_type() :: %{body: String.t()}
cdp_cached_response_type() :: %{body: String.t()}
Cached response
Link to this type
cdp_cached_response_type_type()
View Source
cdp_cached_response_type_type()
View Source
cdp_cached_response_type_type() ::
:opaque_redirect | :opaque_response | :error | :default | :cors | :basic
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()
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()]
}
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()]
}
Data entry.
Link to this type
cdp_header_type() View Source
This type has no documentation
Link to this section Functions
Link to this function
delete_cache(session, parameters, options \\ [])
View Source
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()}
delete_cache( GenServer.server(), %{cache_id: cdp_cache_id_type()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Deletes a cache.
Link to this function
delete_entry(session, parameters, options \\ [])
View Source
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()}
delete_entry( GenServer.server(), %{cache_id: cdp_cache_id_type(), request: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Deletes a cache entry.
Link to this function
request_cache_names(session, parameters, options \\ [])
View Source
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()}
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(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()}
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(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()}
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()}
Requests data from cache.