Commit graph

61 commits

Author SHA1 Message Date
Kim Alvefur
869581384d net: Prefix module imports with prosody namespace 2023-03-17 16:23:12 +01:00
Kim Alvefur
bf9705c70b net.httpserver: Make function local, fixes loading since there is no environment [luacheck] 2018-03-23 13:20:19 +01:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Emmanuel Gil Peyrot
c6048a7cb4 Update every link to the documentation to use HTTPS 2016-04-16 21:08:05 +01:00
Kim Alvefur
69652ea24b net.*: Remove use of module() function 2015-02-21 10:45:24 +01:00
Matthew Wild
30957d900d net.httpserver: Add compatibility stub 2012-04-28 16:41:35 +01:00
Matthew Wild
2d24f6f5cb net.httpserver, net.httpserver_listener: Remove (obsoleted by net.http.* and mod_http, see http://prosody.im/doc/developers/http ) 2012-04-28 14:13:51 +01:00
Waqas Hussain
1e7af78482 net.httpserver: Comment dependency on connlisteners. Further cleanup to follow. 2012-04-22 23:43:34 +05:00
Waqas Hussain
a67ef03130 net.httpserver: Removed unused import. 2011-12-09 11:38:35 +05:00
Matthew Wild
b94b9eba5e net.httpserver: Revert commit eccd3c87d717 which has since been fixed in a better way 2011-03-21 19:35:53 +00:00
Waqas Hussain
6bac77b06f net.httpserver: Removed an unused function. 2011-02-23 07:26:54 +05:00
Matthew Wild
e3d06ad370 net.httpserver: Fix HTTP after commit c299726d2b4e and add a 500 error response if a request handler fails to make a response to the client 2011-02-23 00:31:12 +00:00
Waqas Hussain
fc6149a695 net.httpserver: Catch errors thrown in HTTP handlers. 2011-02-23 02:03:55 +05:00
Matthew Wild
404c107e3f net.httpserver: Log when an error occurs inside a HTTP request handler 2011-02-13 22:57:17 +00:00
Waqas Hussain
f3386d7519 net.httpserver: Removed unused import and variables. 2011-01-05 06:34:23 +05:00
Waqas Hussain
1850c45665 net.httpserver: Changed an unnecessary global access. 2011-01-05 06:26:49 +05:00
Waqas Hussain
3546ee5491 net.httpserver: Decode percent-encoded characters in URL path. 2011-01-05 06:23:17 +05:00
Matthew Wild
c218f83032 net.httpserver: Default 'ports' = {5280} 2010-12-17 01:24:59 +00:00
Waqas Hussain
b7e51a203d Monster whitespace commit (beware the whitespace monster). 2010-10-16 23:00:42 +05:00
Waqas Hussain
3da6413681 net.httpserver: Removed old HTTP parser, and updated to use util.httpstream. 2010-09-17 04:06:07 +05:00
Matthew Wild
fc62af2024 net.httpserver: Join multiple headers with the same name as per RFC (thanks darkhippo) 2010-08-28 23:41:09 +01:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
8862e1b27e Merge 0.6.2/waqas with 0.6.2/MattJ 2010-03-03 22:05:05 +00:00
Matthew Wild
03384d466b net.httpserver: Make request.conn be the server.lua conn instead of the underlying socket (more useful this way) 2010-02-08 11:22:21 +00:00
Matthew Wild
46e81c8baf net.httpserver: Trailing whitespace 2010-02-08 11:20:19 +00:00
Matthew Wild
08eb296248 net.httpserver: More robust handling of headers split across multiple packets 2010-01-21 14:53:01 +00:00
Matthew Wild
7d1211bac1 net.httpserver: Make it possible to return responses with no body 2010-01-21 13:14:52 +00:00
Matthew Wild
ab114b1b5f net.httpserver: Close connection on invalid HTTP status line 2010-01-21 13:10:13 +00:00
Waqas Hussain
c700f8867c net.httpserver: Optimized response serialization. 2009-12-27 10:09:22 +05:00
Matthew Wild
f975e9028d net.httpserver: Fix usage of old connection API syntax 2009-12-17 20:10:11 +00:00
Waqas Hussain
0c6835cf3a net.httpserver: Removed mime handling (now in mod_httpserver). Unknown dynamic content is now always served as text/html. 2009-12-10 16:36:33 +05:00
Waqas Hussain
c7fa0dd97e net.httpserver: Removed mime handling (now in mod_httpserver). Unknown dynamic content is now always served as text/html. 2009-12-10 16:36:33 +05:00
Paul Aurich
a5dcc1d8c6 Disable SSLv2 by default, it's known to be insecure. 2009-12-04 09:48:08 -08:00
Paul Aurich
d92cd1e697 Disable SSLv2 by default, it's known to be insecure. 2009-12-04 09:48:08 -08:00
Matthew Wild
7fa0954aaf net.httpserver: Fix to work with new server API 2009-12-02 18:03:10 +00:00
Matthew Wild
b74d2847c0 net.httpserver: Quick fix to set the correct Content-Type on simple (string) responses, for a few known types 2009-12-02 18:02:47 +00:00
Matthew Wild
abb55058b0 net.httpserver: Quick fix to set the correct Content-Type on simple (string) responses, for a few known types 2009-12-02 18:02:47 +00:00
Matthew Wild
54d5d4f69d net.httpserver, net.http: Update for new net.server API (untested) 2009-11-22 04:44:26 +00:00
Matthew Wild
c103c2bb6b net.httpserver: More robust handling of headers split across multiple packets 2010-01-21 14:53:01 +00:00
Matthew Wild
e79181eab3 net.httpserver: Make it possible to return responses with no body 2010-01-21 13:14:52 +00:00
Matthew Wild
4c3707ec7b net.httpserver: Close connection on invalid HTTP status line 2010-01-21 13:10:13 +00:00
Matthew Wild
18ecc84111 net.httpserver: Pass correct connection object to disconnect listener, which fixes a small leak 2009-11-01 19:41:49 +00:00
Matthew Wild
d4b704023a net.httpserver: Pass on interface option from new_from_config() (thanks Chris) 2009-10-19 17:56:39 +01:00
Matthew Wild
6265a85de2 net.httpserver: Allow modules registering to provide more than just a default path when using httpserver.new_from_config 2009-10-03 00:54:58 +01:00
Matthew Wild
322ae8a3c5 net.httpserver: Allow overriding default request handler 2009-08-11 20:49:19 +01:00
Matthew Wild
fcfb1213d2 net.httpserver: Don't log response bodies! 2009-08-11 19:40:38 +01:00
Matthew Wild
954ab72536 net.httpserver: Allow response.body to be a non-string 2009-08-05 03:07:45 +01:00
Matthew Wild
e37a04496d net.httpserver: Reduce log level of 'request left open' message 2009-07-27 14:26:59 +01:00
Matthew Wild
cef5dd4ef6 net.httpserver: Allow specification of the default base URL when using new_from_config() 2009-07-14 21:03:30 +01:00