wip: implementing message handler, finished to implement request manipulation
This commit is contained in:
parent
a9ce26ae76
commit
c4cf40be4e
13 changed files with 834 additions and 182 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue