client.options
client.options
client.options(...options) : Promise<Response> : throwsThis method is available by default, but can be disable. The options() method will start a HTTP OPTIONS request, using fetch(), with the given options. It will return a Promisehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise which resolves in a Response on success.
This method is fully backwards compatible with the fetch() method, except the HTTP method is fixed to OPTIONS.
Just like client.post() you can set a body parameter in the options.