wip: implementing message handler, finished to implement request manipulation

This commit is contained in:
Jun Kurihara 2023-11-28 00:51:05 +09:00
commit c4cf40be4e
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
13 changed files with 834 additions and 182 deletions

View file

@ -2,7 +2,7 @@ use crate::error::*;
#[derive(Debug, Clone, Hash, Eq, PartialEq)]
pub enum UpstreamOption {
OverrideHost,
DisableOverrideHost,
UpgradeInsecureRequests,
ForceHttp11Upstream,
ForceHttp2Upstream,
@ -12,7 +12,7 @@ impl TryFrom<&str> for UpstreamOption {
type Error = RpxyError;
fn try_from(val: &str) -> RpxyResult<Self> {
match val {
"override_host" => Ok(Self::OverrideHost),
"diaable_override_host" => Ok(Self::DisableOverrideHost),
"upgrade_insecure_requests" => Ok(Self::UpgradeInsecureRequests),
"force_http11_upstream" => Ok(Self::ForceHttp11Upstream),
"force_http2_upstream" => Ok(Self::ForceHttp2Upstream),