Skip to main content

Module plugin

Module plugin 

Source
Expand description

Plugin hooks run after URL construction and auth, before request lifecycle hooks.

Use Plugin::init to rewrite the target URL (e.g. add a query param) or inspect PreparedRequest::method / PreparedRequest::headers before the request is sent.

Structs§

PluginRegistry
Ordered plugin list.
PreparedRequest
Prepared request state passed to plugin Plugin::init.

Traits§

Plugin
Plugin extension point for better-fetch.