-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Rust-server no clashing example names #22880
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
base: master
Are you sure you want to change the base?
Changes from all commits
0d7744b
8211d3c
3a1b39e
3d1837e
5cbfc72
dfc40e8
b4ea510
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -137,7 +137,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Enabling client support for Vec headers exposes a non-round‑trip serialization: items serialize using commas internally, but the Vec header logic joins/splits on commas, so parsing a serialized vector will mis-split items and fail. Prompt for AI agents |
||
| impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRelatedRequest>>> for hyper::header::HeaderValue { | ||
| type Error = String; | ||
|
|
||
|
|
@@ -153,7 +153,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRelatedRequest>> | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
| impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<MultipartRelatedRequest>> { | ||
| type Error = String; | ||
|
|
||
|
|
@@ -307,7 +307,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
| impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRequestObjectField>>> for hyper::header::HeaderValue { | ||
| type Error = String; | ||
|
|
||
|
|
@@ -323,7 +323,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipartRequestObjectFie | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
| impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<MultipartRequestObjectField>> { | ||
| type Error = String; | ||
|
|
||
|
|
@@ -471,7 +471,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
| impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipleIdenticalMimeTypesPostRequest>>> for hyper::header::HeaderValue { | ||
| type Error = String; | ||
|
|
||
|
|
@@ -487,7 +487,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<MultipleIdenticalMimeType | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
| impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<MultipleIdenticalMimeTypesPostRequest>> { | ||
| type Error = String; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,7 +120,7 @@ impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderVal | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Enabling the Vec header parsing for the client feature exposes a parsing bug: the Vec deserializer splits on every comma, but each OpGetRequest uses commas internally ( Prompt for AI agents |
||
| impl std::convert::TryFrom<header::IntoHeaderValue<Vec<OpGetRequest>>> for hyper::header::HeaderValue { | ||
| type Error = String; | ||
|
|
||
|
|
@@ -136,7 +136,7 @@ impl std::convert::TryFrom<header::IntoHeaderValue<Vec<OpGetRequest>>> for hyper | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "server")] | ||
| #[cfg(any(feature = "client", feature = "server"))] | ||
| impl std::convert::TryFrom<hyper::header::HeaderValue> for header::IntoHeaderValue<Vec<OpGetRequest>> { | ||
| type Error = String; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Enabling client-side Vec header parsing is broken because the parser splits on commas, but struct header serialization/deserialization already uses comma-separated key/value pairs. Any Vec of struct headers will fail to parse at runtime for clients.
Prompt for AI agents