Module gopher
Add gopher:// scheme support
The module adds support for Gopher network with basic rendering.
Functions
gopher.parse_gopher_line (line, url)
Parse Gopher menu entry.
Parameters
-
lineType: stringLiteral string line representing a Gopher menu entry.
-
urlType: tableParsed URL structure from parse_url().
Return Values
-
tableStructure representing the menu entry tokens.
gopher.href_source (entry)
Evaluate hyperlink for a gopher menu entry.
Parameters
-
entryType: tableGopher menu entry structure from parsegopherline().
Return Values
-
stringValid URL for the menu entry.
gopher.image_mime_type (ext)
Guess the image MIME type by a filename suffix.
Parameters
-
extType: stringThe filename suffix (without leading dot).
Return Values
-
stringAppropriate MIME type.
gopher.parse_url (url)
Parse Gopher URL.
Parameters
-
urlType: stringGopher URL starting with gopher://
Return Values
-
tableA structure representing the URL tokens.