Skip to main content

parse_gopher_reply

Function parse_gopher_reply 

Source
pub fn parse_gopher_reply(raw: &str, requested_item_type: char) -> GopherReply
Expand description

Read a reply according to the item type that was asked for.

requested_item_type is the whole point: the reply itself carries no content type, so the request is the only thing that says what it is. See the module docs for what happens when that is wrong.