PublicShow sourcehttp_header.pl -- Handling HTTP headers

The library library(http/http_header) provides primitives for parsing and composing HTTP headers. Its functionality is normally hidden by the other parts of the HTTP server and client libraries.

Source http_read_request(+FdIn:stream, -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.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source http_status_reply(Arg1, Arg2, Arg3, Arg4, Arg5)
Source http_join_headers(Arg1, Arg2, Arg3)
Source http_update_encoding(Arg1, Arg2, Arg3)
Source http_parse_header(Arg1, Arg2)
Source http_post_data(Arg1, Arg2, Arg3)
Source http_read_header(Arg1, Arg2)
Source http_timestamp(Arg1, Arg2)
Source http_parse_header_value(Arg1, Arg2, Arg3)
Source http_reply_header(Arg1, Arg2, Arg3)
Source http_reply(Arg1, Arg2, Arg3, Arg4)
Source http_reply(Arg1, Arg2, Arg3)
Source http_reply(Arg1, Arg2, Arg3, Arg4, Arg5)
Source http_reply(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6)
Source http_reply(Arg1, Arg2)
Source http_read_reply_header(Arg1, Arg2)
Source http_status_reply(Arg1, Arg2, Arg3, Arg4)
Source http_update_transfer(Arg1, Arg2, Arg3, Arg4)
Source http_update_connection(Arg1, Arg2, Arg3, Arg4)