Yes, pathname, search and query aren't used by http.request or get, but they're useful if you're making your own web server and want to parse out the arguments.
There are a bunch of examples under the Examples heading that show how you'd use it.
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,
pathname
,search
andquery
aren't used byhttp.request
orget
, but they're useful if you're making your own web server and want to parse out the arguments.There are a bunch of examples under the
Examples
heading that show how you'd use it.