Skip to content

feat(http): app-defined request identity and shared cookie jar (fix #3687 - #3703

Open
lucasfernog wants to merge 2 commits into
v2from
feat/http-request-identity
Open

lucasfernog wants to merge 2 commits into
v2from
feat/http-request-identity

Conversation

@lucasfernog

@lucasfernog lucasfernog commented Oct 12, 2026 •

Copy link
Copy Markdown
Member
  • userAgent and requestHeaders config options to set or remove headers (e.g. Origin) per URL pattern
  • Builder with the same options plus an on_request hook
  • HttpExt::http().cookie_jar() exposes the jar to native reqwest clients
  • unit tests, plus e2e coverage through the api example
  • manual redirect impl

…3687)

- `userAgent` and `requestHeaders` config options to set or remove
  headers (e.g. Origin) per URL pattern
- `Builder` with the same options plus an `on_request` hook
- `HttpExt::http().cookie_jar()` exposes the jar to native reqwest clients
- unit tests, plus e2e coverage through the api example
Comment thread plugins/http/src/lib.rs
Comment on lines +111 to +113
pub fn cookie_jar(&self) -> std::sync::Arc<CookieJar> {
self.cookies_jar.clone()
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we removed reqwest from the public api and add reqwest_cookie_store which is also 0.x ? mark it as unstable or something then.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well in this case we have inlined reqwest_cookie_store in the plugin as a submodule

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh lol i didn't notice 🙃

Comment thread plugins/http/src/error.rs
///
/// The error is serialized to the frontend as its [`Display`](std::fmt::Display) string.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically breaking change but maybe fine since it's not used anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants