Yes, please do update the docs :) The whole options object could use some documentation improvements :)
Just noticed that for http.request it says
options An object containing host,port,path,method,headers fields
And for url.parse it says
An object containing options for http.request or http.get. Contains method, host, path, pathname, search, port and query
So url.parse returns a bunch of options (pathname, search, query) not mentioned as supported in http.request (or http.get)
Could you please try to clarify that?
@Tobbe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, please do update the docs :) The whole options object could use some documentation improvements :)
Just noticed that for http.request it says
And for url.parse it says
So url.parse returns a bunch of options (pathname, search, query) not mentioned as supported in http.request (or http.get)
Could you please try to clarify that?