allowRedirectHeaders (default: null) - an array of headers allowed for redirects (none if null).maxRedirects - sets the maximum number of redirects to follow before erroring on node.js (default: Infinity).followRedirects - defaults to true but can be explicitly set to false on node.js to prevent then-request following redirects automatically.This option is only used if running in node.js A separate process is still spawned even for cache requests. cache - Set this to 'file' to enable a local cache of content.Does not have any affect on how the response is treated. json - sets body but to JSON representation of value and adds Content-type: application/json.Must be a Buffer or String (only strings are accepted client side) body - body for PATCH, POST and PUT requests.qs - an object containing querystring values to be appended to the uri.Relative URLs are allowed in the browser. It is not case sensitive.Ī url as a string (e.g. ![]() getBody ( ' utf8 ' ) ) Īn HTTP method (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |