Closed leonardus closed 6 years ago
It would make more sense to have the HTTP method be a property of the request object, rather than set in the request's headers object.
request
headers
Example:
request = http_request.new_from_uri("http://example.org/post") request.method = "POST" request:go()
lua-http follows HTTP2 convention where method is just another HTTP header.
See https://daurnimator.github.io/lua-http/0.2/#conventions
It would make more sense to have the HTTP method be a property of the
request
object, rather than set in the request'sheaders
object.Example: