lua-http
lua-http copied to clipboard
HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
This adds a convenience method for turning a request into a urlencoded form data POST request
### Issue I was experimenting with Lua and follow your examples from documentation. And I've noticed that timeout on `go` function seems don't work from time to time... It works...
Now supported in curl https://daniel.haxx.se/blog/2019/03/03/alt-svc-in-curl/
Especially notable is gzip, as Transfer-Encoding is not supported in HTTP2. Need to be mindful of interaction with things like Content-Length and ETag.
You can't cqueues.poll() on a websocket object because it doesn't expose the cqueues pollobj interfaces.
e.g. `stream:setmaxbodysize(4096)` Once the limit is reached then e.g. `:get_body_as_string()` should return some error. (which then e.g. gets translated to a `413` status code)
e.g. for a connection over a SOCKS proxy, it should be the *end* peer, not the SOCKS proxy. e.g. for a (client) stream using a http proxy, it should be...
Can do for dependency-less modules e.g. hsts. Can do rest once typedlua allows `require` in .tld files. ping @andremm