Commit graph

668 commits

Author SHA1 Message Date
Steven Barth
00aceaf624 * libs/web: Switched from HTTP-Basic-Auth to Session-Auth
* Updated Makefiles for better testing environment integration
* Fixed libs/sgi-luci
2008-06-28 16:03:54 +00:00
Jo-Philipp Wich
7f56bf9475 * libs/http: prepare support for RFC2616 / 14.24 - 14.28 2008-06-28 02:05:48 +00:00
Jo-Philipp Wich
3eefe8a8e2 * libs/http: removed caching in http.protocol.date 2008-06-27 20:48:11 +00:00
Steven Barth
289b8fc1b6 * libs/web: Prepare session authentication 2008-06-27 20:29:05 +00:00
Steven Barth
78110807c2 * Updated thankyou documents 2008-06-27 19:26:55 +00:00
Jo-Philipp Wich
96e11423b3 * libs/http: implement caching in http.protocol.date 2008-06-26 20:25:02 +00:00
Steven Barth
378ef2da56 * libs/httpd: Removed a debug function 2008-06-26 19:42:38 +00:00
Steven Barth
dc583e0d3f * libs/httpd: Rewrote daemon controller to increase performance 2008-06-26 19:41:37 +00:00
Jo-Philipp Wich
3346f8fccd * libs/httpd: added ETag, Date, Content-Type and Last-Modified header support to file handler 2008-06-26 18:49:18 +00:00
Jo-Philipp Wich
6ce3d85076 * libs/http: removed debugging prints from http.protocol.date 2008-06-26 18:42:28 +00:00
Jo-Philipp Wich
5c5bbf9c50 * libs/http: require luci.util in http.protocol.mime 2008-06-26 18:32:29 +00:00
Jo-Philipp Wich
98b954a48f * libs/http: added http mime helper lib 2008-06-26 18:31:25 +00:00
Jo-Philipp Wich
85ec6b0a75 * libs/http: added http date helper lib 2008-06-26 18:08:48 +00:00
Jo-Philipp Wich
b8faf24d5c * luci/httpd: fix 500 error case in luci handler, added copyright stuff 2008-06-25 21:19:10 +00:00
Steven Barth
231cd0b89d * libs/httpd: Optimized performance again 2008-06-25 18:44:25 +00:00
Steven Barth
7d0b17c7d3 * libs/httpd: Fixed typos 2008-06-25 18:33:38 +00:00
Steven Barth
e0e4983130 * libs/httpd: Optimized performance 2008-06-25 18:09:53 +00:00
Steven Barth
741bbe7817 * libs/httpd: cleanup 2008-06-25 17:13:59 +00:00
Steven Barth
5d9394a3d6 * libs/httpd: Use HTTP/1.0 for error messages 2008-06-25 16:50:55 +00:00
Steven Barth
215e225fe9 * libs/httpd: Automatically remove timed out threads 2008-06-25 16:48:48 +00:00
Steven Barth
7a4aa85dd6 * libs/httpd: Introduced keep-alive and pipelining support 2008-06-25 16:38:48 +00:00
Steven Barth
b85d292bcd * libs/web: Fixed reference to dispatcher in luci.dispatcher.build_url 2008-06-25 14:58:18 +00:00
Steven Barth
1a9fe9cd77 libs/web: Fixed bug where the environment table gets returned in case of an undefined variable 2008-06-23 23:35:25 +00:00
Steven Barth
cd0eaf0005 * libs/web: Changed caching behaviour of template library 2008-06-23 23:03:38 +00:00
Steven Barth
623eb26486 * Added preliminary OpenWRT support for luci-httpd 2008-06-23 21:49:29 +00:00
Steven Barth
df8f524940 * libs/httpd: Tuned Garbage Collection 2008-06-23 21:30:44 +00:00
Steven Barth
1e413b9251 * libs/util: Fixed memory leaks in threadlocal implementations 2008-06-23 20:01:34 +00:00
Steven Barth
02cce96c83 * libs/httpd: Added performance ;-) 2008-06-23 19:41:35 +00:00
Jo-Philipp Wich
d5deb7a99a * luci/libs: fix syntax error in last commit 2008-06-23 19:21:54 +00:00
Jo-Philipp Wich
520b4060a7 * luci/libs: fix possible error when doing sub() on chunk in server.lua 2008-06-23 19:20:57 +00:00
Jo-Philipp Wich
a9a80a3be3 * luci/libs: fix eof handling for urldecode_message_body() in protocol.lua 2008-06-23 19:16:00 +00:00
Steven Barth
4f630d647c * Introducing LuCI HTTPD as testing environment
* Several coroutine-safety fixes
2008-06-23 18:17:02 +00:00
Jo-Philipp Wich
a038da390d * luci/libs: add support for chunked transfer decoding in http.protocol 2008-06-22 12:07:37 +00:00
Steven Barth
90aef16aea * libs/httpd: Prepared HTTPD dispatching model 2008-06-21 19:41:17 +00:00
Steven Barth
16dfa697e4 * Fixed call to push_response 2008-06-21 16:39:51 +00:00
Steven Barth
b28bf0f394 * Fixed last commit 2008-06-21 16:24:52 +00:00
Steven Barth
bfbd74c6ae * libs/httpd: Forward changed Handler API to use luci.http to push responses
* libs/httpd: Added Expect: 100-continue header support to server (merged from Jow)
2008-06-21 16:23:41 +00:00
Steven Barth
65870edf9f * libs/core: Added garbage collector to luci.util.threadlocal to avoid memory leaks
* libs/http: Use env-Variables instead of headers for parse_message_body and subsequent functions
* libs/http: Added missing urldecode call for parsing urlencoded params
* libs/web: Ported luci.http to use ltn12 sources and sinks instead of sockets or file pointers
* libs/sgi-cgi, libs/sgi-webuci, libs/sgi-wsapi: Updated to work with new luci.http.Request ABI
2008-06-20 19:57:57 +00:00
Steven Barth
e2e9e119d6 * Moved luci.http.protocol to libs/http
* Added ltn12 to libs/core
* Fixed libs/httpd Makefile
2008-06-20 16:47:25 +00:00
Jo-Philipp Wich
8349a0504e * luci/httpd: add initial server implementation 2008-06-19 03:02:49 +00:00
Jo-Philipp Wich
f712a1f2c2 * luci/libs: moved http.protocol from libs/web to libs/httpd, rewrote http.protocol to rely on LTN12 chains 2008-06-19 02:53:09 +00:00
Steven Barth
304ce583c7 * Use CRLF instead of LF in HTTP headers 2008-06-17 16:23:42 +00:00
Steven Barth
71beb64a22 * Preliminary module implementation for Luci HTTPD 2008-06-17 16:16:27 +00:00
Steven Barth
37ab75aea5 * Removed it 2008-06-16 19:53:48 +00:00
Steven Barth
dfe85d7e51 * Added preliminary HTTPD construct 2008-06-16 19:47:57 +00:00
Jo-Philipp Wich
77da39e776 * luci/libs: http.protocol: prevent oversized read blocks when reading from socket or file handle 2008-06-15 21:43:32 +00:00
Jo-Philipp Wich
15fbb8799e * luci/libs: http.protocol: switch to blockwise reading in urlencoded post requests, renamed readbuf constant 2008-06-15 21:39:16 +00:00
Steven Barth
89f1f43c9d * Fixed SGI webuci to work with new HTTP API 2008-06-15 21:11:34 +00:00
Steven Barth
8d2f6c7041 * Fix sgi-cgi postinst 2008-06-15 20:10:20 +00:00
Jo-Philipp Wich
72aa111b22 * luci/libs: improved linereader implementation 2008-06-15 20:08:29 +00:00