Skip to main content

path_segment

Function path_segment 

Source
pub fn path_segment(s: &str) -> String
Expand description

Escapes an identifier for use in a URL path, leaving / and : literal: APIs expect /works/doi:10.1038/nature14539 as written, but DOIs may contain #, ? or <>, which must not be taken as URL syntax.