Parser

Author(s): Christian Giménez.

Usage and interface

Documentation on exports

PREDICATE

Usage: parse_http(+Str,-File)

  • Description: True happens when Str is a correct GET text and the File is the File that is requesting.

PREDICATE

Usage: verify_get(+Str)

  • Description: Return true if the GET text is correct.

PREDICATE

Usage: obtain_file(+Str,-File)

  • Description: Retrieve the file relative path that the client is requesting this is true when File is the file that the first sentence of the ListStr is pointing in the GET ... HTTP/1.1 GET sentence.