You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Determines the type of quota around the body and uri.
default is single
importr2curlfrom'r2curl';// option as IR2CurlOptions.tsconstoption={/** Determines the type of quota around the body and uri. */quote: 'double',};constcurl=r2curl(requestConfig,option);console.log(curl);
option.defaultContentType
Determines the default Content-Type header value for POST and PUT requests.
default is application/json; charset=utf-8
Type is (enum) HTTP_HEADER_CONTENT_TYPE | string | false;
If you give (boolean) false to defaultContentType, you can disable Content-Type Header.