Parser
Author(s): Christian Giménez.Usage and interface
- Library usage:
:- use_module(library(pc_parser)). - Exports:
- Predicates:
parse_http/2, verify_get/1, obtain_file/2.
- Predicates:
- Other modules used:
- System library modules:
lists. - Internal (engine) modules:
term_basic, arithmetic, atomic_basic, attributes, basic_props, basiccontrol, data_facts, exceptions, io_aux, io_basic, prolog_flags, streams_basic, system_info, term_compare, term_typing, hiord_rt, debugger_support.
- System library modules:
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: 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.