Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce request forwarder abstraction and security improvements #20

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@

# macOS files
.DS_Store

# Certificates
*.crt
*.key
*.pem
210 changes: 208 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ boa_parser = "0.20.0"
tls-parser = "0.12.2"
tokio-util = { version = "0.7.13", features = ["compat"] }
pin-project-lite = "0.2.16"
async-trait = "0.1.75"

[dependencies]
bytes = { workspace = true }
Expand All @@ -48,8 +49,10 @@ rustls-pemfile = { workspace = true }
clap = { workspace = true }
boa_engine = { workspace = true }
boa_parser = { workspace = true }
hyper-tls = { workspace = true }
tls-parser = { workspace = true }
async-trait = { workspace = true }
tokio-util = { workspace = true }
hyper-util = { workspace = true }
hyper-tls = { workspace = true }
pin-project-lite = { workspace = true }
hyper-http-proxy = "1.0.0"
2 changes: 1 addition & 1 deletion src/conditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ mod condition_tests {

#[cfg(test)]
mod to_js_tests {
use crate::logic::{ToJs};
use crate::logic::{PacExpression, ToJs};
use crate::proxy_types::ProxyType;
use super::*;

Expand Down
Loading