Skip to main content

Crate pingap_plugin

Crate pingap_plugin 

Source

Enums§

Error

Functions§

accepts_encoding
Returns true if accept_encoding lists coding as an acceptable encoding.
body_will_change
Takes back what a response can no longer say of itself once its body is going to be another: that ranges of it can be asked for, and that its ETag names these bytes.
get_duration_conf
Helper functions for accessing plugin configuration values
get_hash_key
Generates a unique hash key for a plugin configuration to detect changes.
get_int_conf
get_int_conf_or_default
get_plugin_factory
get_step_conf
get_step_conf_in
Resolves step, rejecting a value the plugin does not implement.
get_str_conf
Helper functions for accessing plugin configuration values
get_str_slice_conf
A list of strings. One string on its own is a list of one: that is how a single value reads in KDL (ip_list "1.2.3.4"), and it used to count as no list at all, which left an allow or deny list empty without a word.
is_partial_content
Whether the response is a part of a body and not the body: a 206, or anything that says which bytes it is.
needs_ja4
Whether the plugin conf describes goes by the JA4 fingerprint of the connection, which only a server with ja4 = true collects.
new_body_handler_id
The name one plugin instance keeps something of a request under: its response body handler, or the value it hands to a later step (Ctx::set_plugin_value).
unread_keys
What the plugin conf describes has that the plugin does not read: a setting that has no effect, by the plugin’s own account. For the check of a configuration, which says it once.
weaken_etag
Makes a strong ETag a weak one, true when it changed the header.