2 LuCI Web Framework high-level HTTP functions.
8 Close the HTTP-Connection.
16 Return the request content if the request was of unknown type.
20 @return HTTP request body
21 @return HTTP request body length
25 Get a certain HTTP input value or a table of all input values.
29 @param name Name of the GET or POST variable to fetch
30 @param noparse Don't parse POST data before getting the value
31 @return HTTP input value or table of all input value
35 Get a table of all HTTP input values with a certain prefix.
40 @return Table of all HTTP input values with given prefix
44 Get the value of a certain HTTP-Cookie.
48 @param name Cookie Name
49 @return String containing cookie data
53 Get the value of a certain HTTP environment variable
55 or the environment table itself.
58 @param name Environment variable
59 @return HTTP environment value or environment table
63 Set a handler function for incoming user file uploads.
67 @param callback Handler function
76 @param value Header value
80 Set the mime type of following content data.
84 @param mime Mimetype of following content
88 Get the RAW HTTP input source
92 @return HTTP LTN12 source
96 Set the HTTP status code and status message.
100 @param code Status code
101 @param message Status message
105 Send a chunk of content data to the client.
107 This function is as a valid LTN12 sink.
108 If the content chunk is nil this function will automatically invoke close.
111 @param content Content chunk
112 @param src_err Error object from source (optional)
117 Splice data from a filedescriptor to the client.
121 @param fp File descriptor
122 @param size Bytes to splice (optional)
126 Redirects the client to a new URL and closes the connection.
130 @param url Target URL
134 Create a querystring out of a table of key - value pairs.
137 @name build_querystring
138 @param table Query string source table
139 @return Encoded HTTP query string
143 Return the URL-decoded equivalent of a string.
145 @param str URL-encoded string
146 @param no_plus Don't decode + to " "
147 @return URL-decoded string
152 Return the URL-encoded equivalent of a string.
154 @param str Source string
155 @return URL-encoded string
160 Send the given data as JSON encoded string.
164 @param data Data to send