From d1e8388b7eff1dcafdf218e03514b0dba3ed7e71 Mon Sep 17 00:00:00 2001 From: nnposter Date: Fri, 7 Jul 2017 20:11:53 +0000 Subject: [PATCH] Trivial documentation clean-up --- nselib/http.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index 9d685cf3e..c2361543d 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -12,7 +12,7 @@ -- -- These functions return a table of values, including: -- * status-line - A string representing the status, such as "HTTP/1.1 200 OK". In case of an error, a description will be provided in this line. --- * status: The HTTP status value; for example, "200". If an error occurs during a request, then this value is going to be nil. +-- * status - The HTTP status value; for example, "200". If an error occurs during a request, then this value is going to be nil. -- * header - An associative array representing the header. Keys are all lowercase, and standard headers, such as 'date', 'content-length', etc. will typically be present. -- * rawheader - A numbered array of the headers, exactly as the server sent them. While header['content-type'] might be 'text/html', rawheader[3] might be 'Content-type: text/html'. -- * cookies - A numbered array of the cookies the server sent. Each cookie is a table with the following keys: name, value, path, domain, and expires. @@ -58,6 +58,7 @@ -- * rawheader: A list of header values as "name: value" strings, in the exact format and order that the server sent them -- * cookies: A list of cookies that the server is sending. Each cookie is a table containing the keys name, value, and path. This table can be sent to the server in subsequent responses in the options table to any function (see below). -- * body: The body of the response +-- * fragment: Partially received body (if any), in case of an error. -- * location: a list of the locations of redirects that were followed. -- -- Many of the functions optionally allow an 'options' table. This table can alter the HTTP headers