Did you know ... Search Documentation:
Predicate http_read_request/2
 http_read_request(+FdIn:istream, -Request) is det
Read an HTTP request-header from FdIn and return the broken-down request fields as +Name(+Value) pairs in a list. Request is unified to end_of_file if FdIn is at the end of input.