Skip to main content

path_and_query

Function path_and_query 

Source
pub fn path_and_query(url: &str) -> Option<String>
Expand description

Turn an absolute Links::next URL into the path-and-query form Client::request wants, since that method prefixes its own base URL and cannot be handed a whole URL.

Returns None for anything unparseable, which a paging caller treats as “no more pages” rather than an error — stopping early is recoverable and shows up as a short list, where a hard failure would take down a command that was otherwise working.