Commit Graph

35 Commits (41d45e0c64b94de227f048d5f376699dd6041735)

Author SHA1 Message Date
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild 032e7149c6 net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak 16 years ago
Matthew Wild ead6371721 net.http: Close connection when invalid status line is received from the server 16 years ago
Matthew Wild 79382a2305 net.http: Don't re-destroy a request when the connection is closed 16 years ago
Matthew Wild 1e2242d319 net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd) 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
Matthew Wild 7148417dbb net.http: Don't re-destroy a request when the connection is closed 16 years ago
Matthew Wild 73ce21ca9f net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd) 16 years ago
Matthew Wild 1ea522dd46 net.http: Don't expect the body on redirects 16 years ago
Matthew Wild 883e2bd682 net.http: Don't expect the body on redirects 16 years ago
Matthew Wild 54d5d4f69d net.httpserver, net.http: Update for new net.server API (untested) 16 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 12d17990b6 net.http: (Re-)add url[en|de]code functions 17 years ago
Matthew Wild ef5e994b1f net.http, net.httpserver: Remove urlcodes table... it really isn't needed (thanks Jan Harkes) 17 years ago
Matthew Wild c8addd5dd0 net.http: Fix potential nil access 17 years ago
Waqas Hussain 9357b3fc3e Fixed: net/http.lua: HTTP request callback wasn't being called on some errors 17 years ago
Matthew Wild 51fd2073f8 net.http: Don't throw error on invalid URLs. Fixes #56. 17 years ago
Matthew Wild c0dbcb4389 Port to new server.lua, quite some changes, but I believe everything to be working 17 years ago
Matthew Wild 5da8d03077 net.http: custom_headers -> headers 17 years ago
Matthew Wild b0f1c38d96 net.http: Don't log content from server 17 years ago
Matthew Wild 661b30bfc7 net.http: Fix to send query part of URL to server 17 years ago
Matthew Wild 06ffda1881 net.http: Fix for callbacks being triggered multiple times for the same request 17 years ago
Matthew Wild 6b15ed47fd Protected call for HTTP request callbacks, to catch errors 17 years ago
Matthew Wild a3661957b6 Fix to prevent calling HTTP request callback twice with the same data 17 years ago
Matthew Wild cabcee1bd0 HTTP requests now have status code as a number instead of a string. Switched parameters on both http.request() and the callback to better match LuaSocket's http module 17 years ago
Matthew Wild 97c4dc41bd Fix nil status code for http request callbacks 17 years ago
Waqas Hussain d3d9a986ba Fixed URL encoding to generate %0x instead of %x 17 years ago
Matthew Wild 3f57f03f11 Oops, don't call server.loop() because we'll be running inside the server 17 years ago
Matthew Wild d18299fec9 Pass HTTP request object to callback 17 years ago
Matthew Wild 4b6cff1b8d HTTP request callbacks now: handler(code, content) (where code may be 0, and content an error message) 17 years ago
Matthew Wild 48891b0925 Non-blocking HTTP requests (adding net.http) 17 years ago