Request

metro.request

metro.request(...options) : Request

Returns a new request, built out of the options passed. Later option values override earlier values.

You can add any valid property of Request to an option.

If you enter a string as option, it will always be interpreted as a URL. Just like a metro.url or URL or Location object. e.g.:

let req = metro.request('https://example.com/')

default Request methods

metro Request methods

metro Request properties