Commit Graph

83 Commits (d3bdcaeda0e621f05abaa6c8a86b52dc20a02859)

Author SHA1 Message Date
Kim Alvefur 7e28119b3d net.http: Add option for disabling TLS certifictate validation 9 years ago
Kim Alvefur e605ac0987 net.http: Validate HTTPS certificates (fixes #659) 9 years ago
Kim Alvefur 708ce26bc8 net.http: Move default SSL/TLS settings into options, allowing them to be overriden in new() 9 years ago
Kim Alvefur 450544aad0 net.http: Expose defaults 9 years ago
Kim Alvefur 10d48f1bad net.http: Remove duplicate 'request' entry 9 years ago
Matthew Wild 3371e3eae3 net.http: Add request.url, which is the original full URL as a string 9 years ago
Matthew Wild 66a3d68d56 net.http: Fire new events: pre-request, request-connection-error, request, response 9 years ago
Matthew Wild 04d3816b69 net.http: Allow creation of http client objects, with custom options 9 years ago
Kim Alvefur 3e7bffe8c8 net.http: Pass error all the way to callback 9 years ago
Kim Alvefur 6d2a83e077 net.http: Strip trailing whitespace 9 years ago
Kim Alvefur e14306d742 net.http: Remove unused imports [luacheck] 9 years ago
Matthew Wild 5a7fc4ca74 net.http: Add quotes around ids in log messages 10 years ago
Matthew Wild 22ce4d1825 net.http: Add log messages for requests, including their id (so "calling callback" and tracebacks can be traced back to their initial request) 10 years ago
Matthew Wild fc9bcc9b20 net.http: Add request.id to every request object (can be overridden by providing ex.id) 10 years ago
Kim Alvefur 69652ea24b net.*: Remove use of module() function 11 years ago
Matthew Wild 26cd63e77f certmanager, net.http: Disable SSLv3 by default 11 years ago
Matthew Wild 899b6d53ae net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent) 12 years ago
daurnimator 5c7f981a77 net/http: Use server.addclient 12 years ago
daurnimator 5c25cdaa77 net/http: Use server.addclient 12 years ago
Matthew Wild edb2882b96 net.http: assert() for socket creation success so it doesn't silently fail (thanks daurnimator) 12 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild 3ad5836d2e net.http: Include port number (when non-standard) in the Host header of outgoing requests, as per the HTTP RFC 13 years ago
Matthew Wild c178786878 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Matthew Wild 4602591c38 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Matthew Wild 6dced9f482 net.http: When HTTP request fails due to a network or SSL error, call the callback to let it know 13 years ago
Matthew Wild ef9b86202e net.http: Swap response and request parameters passed to callback (will break some modules) 13 years ago
Matthew Wild 218b8844b4 net.http: Switch from util.httpstream to net.http.parser, introduces small but backwards-incompatible API changes - see http://prosody.im/doc/developers/http 13 years ago
Matthew Wild 8994b3afd1 net.http, util.http: Move definitions of urlencode/decode and formencode/decode to util.http (possible to use them without unnecessary network-related dependencies) 13 years ago
Matthew Wild 131f865ac2 net.http: Throw error when connecting to a http:// URL without LuaSec available 13 years ago
Matthew Wild 0c46e400af net.http: Disable SSLv2 support for HTTPS connections 13 years ago
Matthew Wild 375e615103 net.http: Allow passing an SSL context or options table to be used for HTTPS requests (thanks daurnimator) 13 years ago
Matthew Wild ef88813111 net.http: Don't call ondisconnect manually, net.server now calls it on close 14 years ago
Kim Alvefur 7b894f50d3 net.http: Use base64 from util.encodings instead of luasocket 14 years ago
Matthew Wild ebdfc8c271 net.http: Fix urlencode to not encode unreserved characters, so I can guiltlessly rant about people who do. 14 years ago
Matthew Wild 40423517a9 net.http, httpclient_listener: Merge listener into net.http 14 years ago
Matthew Wild 2929035ea8 net.http: Pass response object to callbacks (feels hacky, should this be passed *instead of* the request?) 14 years ago
Waqas Hussain 74ac411796 net.http: Remove extra space after method in request status line for POST. 15 years ago
Matthew Wild a021aa7047 net.http: Convert port to a number (for custom port in URL) 15 years ago
Matthew Wild cb11644d8d net.http: Support for k->v maps in http.formencode 15 years ago
Matthew Wild 029b66e933 net.http, httpclient_listener: Move request sending from net.http to onconnect() handler, and add support for HTTPS requests to net.http 15 years ago
Matthew Wild 5e135c491c net.http: Whitespace fixes 15 years ago
Matthew Wild 0b8455a432 net.http: Small fix to prevent traceback when connection fails before sending the request 15 years ago
Matthew Wild 0849d44380 net.http: Add formdecode to decode an urlencoded form 15 years ago
Waqas Hussain 8e491a46d7 net.http: Removed old HTTP parser, and updated to use util.httpstream. 15 years ago
Waqas Hussain b7e51a203d Monster whitespace commit (beware the whitespace monster). 15 years ago
Matthew Wild e724cea395 net.http: Add http.formencode() for www-form-urlencoded from an array of fields (thanks dersd) 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild dd726b487b net.http: Update print()s to log()s - don't ask how this came to be, I have no idea :) 16 years ago
Matthew Wild 4936167a32 net.http: destroy_request(): Remove update for new server API, pass request.handler instead of request.conn to ondisconnect 16 years ago
Matthew Wild 463a83ee3f net.http: Close connection when invalid status line is received from the server 16 years ago