mirror of
https://codeberg.org/icewind/rfc7239.git
synced 2026-06-03 16:44:10 +02:00
flake
This commit is contained in:
parent
d36f5ae579
commit
ef8c3b961d
10 changed files with 146 additions and 38 deletions
|
|
@ -50,7 +50,7 @@ impl Display for RfcError {
|
|||
impl Error for RfcError {}
|
||||
|
||||
/// Parse an rfc7239 header value into a list of forwarded nodes
|
||||
pub fn parse(header_value: &str) -> impl Iterator<Item = Result<Forwarded, RfcError>> {
|
||||
pub fn parse(header_value: &str) -> impl DoubleEndedIterator<Item = Result<Forwarded, RfcError>> {
|
||||
header_value.split(',').map(str::trim).map(Forwarded::parse)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue