Sets the default fetch options that will be stored internally when instantiating wretch objects.
import wretch from "wretch"wretch.options({ headers: { "Accept": "application/json" } });// The fetch request is sent with both headers.wretch("...", { headers: { "X-Custom": "Header" } }).get().res();
Default options
If true, completely replaces the existing options instead of mixing in
Generated using TypeDoc
Sets the default fetch options that will be stored internally when instantiating wretch objects.