2 LuCI Web Framework high-level HTTP functions.
7 Close the HTTP-Connection.
15 Return the request content if the request was of unknown type.
19 @return HTTP request body
20 @return HTTP request body length
24 Get a certain HTTP input value or a table of all input values.
28 @param name Name of the GET or POST variable to fetch
29 @param noparse Don't parse POST data before getting the value
30 @return HTTP input value or table of all input value
34 Get a table of all HTTP input values with a certain prefix.
39 @return Table of all HTTP input values with given prefix
43 Get the value of a certain HTTP-Cookie.
47 @param name Cookie Name
48 @return String containing cookie data
52 Get the value of a certain HTTP environment variable
54 or the environment table itself.
57 @param name Environment variable
58 @return HTTP environment value or environment table
62 Set a handler function for incoming user file uploads.
66 @param callback Handler function
75 @param value Header value
79 Set the mime type of following content data.
83 @param mime Mimetype of following content
87 Get the RAW HTTP input source
91 @return HTTP LTN12 source
95 Set the HTTP status code and status message.
99 @param code Status code
100 @param message Status message
104 Send a chunk of content data to the client.
106 This function is as a valid LTN12 sink.
107 If the content chunk is nil this function will automatically invoke close.
110 @param content Content chunk
111 @param src_err Error object from source (optional)
116 Splice data from a filedescriptor to the client.
120 @param fp File descriptor
121 @param size Bytes to splice (optional)
125 Redirects the client to a new URL and closes the connection.
129 @param url Target URL
133 Create a querystring out of a table of key - value pairs.
136 @name build_querystring
137 @param table Query string source table
138 @return Encoded HTTP query string
142 Return the URL-decoded equivalent of a string.
144 @param str URL-encoded string
145 @param no_plus Don't decode + to " "
146 @return URL-decoded string
151 Return the URL-encoded equivalent of a string.
153 @param str Source string
154 @return URL-encoded string
159 Send the given data as JSON encoded string.
163 @param data Data to send