coro-http currently does not have the functionality to prevent following redirects.
This PR adds an options argument to the request function, which is a table of possible options for the request
This also replaces the timeout argument, which has now been moved into the options table, making it look like:
Continuation of https://github.com/luvit/lit/pull/230
coro-http currently does not have the functionality to prevent following redirects.
This PR adds an
options
argument to the request function, which is a table of possible options for the request This also replaces thetimeout
argument, which has now been moved into theoptions
table, making it look like:This also allows more options to be added over time as required.
For backwards compatibility, if a
number
is provided instead of a table to the options parameter, it is assumed as the timeout.