add comments and changeset

pull/2430/head
goenning 5 months ago
parent 8c91d20b60
commit 1d7df7dce8
No known key found for this signature in database
GPG Key ID: 853BA56FC914ED48

@ -0,0 +1,5 @@
---
"updater": minor
---
Add `on_before_request` hook to the updater plugin.

@ -242,6 +242,11 @@ impl UpdaterBuilder {
self
}
/// Allows you to modify the `reqwest`` client builder before the HTTP request is sent.
///
/// Note that `reqwest` crate may be updated in minor releases of tauri-plugin-updater.
/// Therefore it's recommended to pin the plugin to at least a minor version when you're using `on_before_request`.
///
pub fn on_before_request<F: Fn(ClientBuilder) -> ClientBuilder + Send + Sync + 'static>(
mut self,
f: F,

Loading…
Cancel
Save