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
Copy file name to clipboardExpand all lines: docs/api/image.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,10 +202,10 @@ Note that you can pass a wide variety of image sources to the `loadImage` helper
202
202
When loading a URL over HTTP(S) you may also include a second argument containing options to be used when the library makes its web request behind the scenes.
203
203
204
204
The supported options include:
205
-
-`method`: the http ‘verb’ to use (defaults to `GET`)
205
+
-`method`: the http ‘verb’ to use (defaults to `"GET"`)
206
206
-`headers`: an object mapping request header names to values
207
207
-`body`: a string or buffer to be sent to the server if the method is set to `POST` or `PUT`
208
-
-`auth`: credentials for Basic Auth in the format `"user:password"` which will be used to construct the `Authorization` header (if not supplied)
208
+
-`auth`: a string with credentials for Basic Auth in the format `"user:password"` which will be used to construct the `Authorization` header (if not supplied)
209
209
-`signal`: an [AbortSignal][AbortSignal] to allow the request to be cancelled
210
210
-`agent`: an [http.Agent][http_agent] used to customize the connection or `false` to disable the [default agent](https://www.npmjs.com/package/https-proxy-agent) which uses the url in the `HTTP_PROXY` environment variable (if defined) as a proxy server
211
211
- any other option supported by Node’s [http.request][http_request] call
0 commit comments