Skip to content
Discussion options

You must be logged in to vote

You are close!

  • the host property is only the host name (e.g. localhost) without the protocol ("http") or port
  • The port number is passed on the 'port' property

You have find the examples in the documentation for the HTTP request constructor helpful, such as:

let request = new Request({host: "www.example.com", path: "/info.dat", port: 8080, response: ArrayBuffer});

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@andycarle
Comment options

@Frida854
Comment options

@nickthiru
Comment options

@andycarle
Comment options

@nickthiru
Comment options

Answer selected by nickthiru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants