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
https://oxc.rs/docs/guide/usage/formatter/config-file-reference.html#jsdoc
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Reformatted JSDoc comments across multiple files for improved clarity
and consistency.
* **Chores**
* Updated code formatting configuration to enforce consistent
documentation block formatting standards.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
* urllib default use URLSearchParams to stringify form data which don't support nested object,
63
-
* will use qs instead of URLSearchParams to support nested object by set this option to true.
59
+
* Urllib default use URLSearchParams to stringify form data which don't support nested object, will use qs instead of
60
+
* URLSearchParams to support nested object by set this option to true.
64
61
*/
65
62
nestedQuerystring?: boolean;
66
63
/**
@@ -85,27 +82,23 @@ export type RequestOptions = {
85
82
/** Request headers. */
86
83
headers?: IncomingHttpHeaders;
87
84
/**
88
-
* Request timeout in milliseconds for connecting phase and response receiving phase.
89
-
* Defaults is `5000`, both are 5 seconds. You can use timeout: 5000 to tell urllib use same timeout on two phase or set them separately such as
85
+
* Request timeout in milliseconds for connecting phase and response receiving phase. Defaults is `5000`, both are 5
86
+
* seconds. You can use timeout: 5000 to tell urllib use same timeout on two phase or set them separately such as
90
87
* timeout: [3000, 5000], which will set connecting timeout to 3s and response 5s.
91
88
*/
92
89
timeout?: number|number[];
93
90
/**
94
-
* Default is `4000`, 4 seconds - The timeout after which a socket without active requests will time out.
95
-
* Monitors time between activity on a connected socket.
96
-
* This value may be overridden by *keep-alive* hints from the server. See [MDN: HTTP - Headers - Keep-Alive directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive#directives) for more details.
91
+
* Default is `4000`, 4 seconds - The timeout after which a socket without active requests will time out. Monitors
92
+
* time between activity on a connected socket. This value may be overridden by _keep-alive_ hints from the server.
93
+
* See [MDN: HTTP - Headers - Keep-Alive
94
+
* directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive#directives) for more details.
97
95
*/
98
96
keepAliveTimeout?: number;
99
-
/**
100
-
* username:password used in HTTP Basic Authorization.
101
-
* Alias to `headers.authorization = xxx`
102
-
**/
97
+
/** Username:password used in HTTP Basic Authorization. Alias to `headers.authorization = xxx` */
103
98
auth?: string;
104
-
/**
105
-
* username:password used in HTTP Digest Authorization.
106
-
* */
99
+
/** Username:password used in HTTP Digest Authorization. */
107
100
digestAuth?: string;
108
-
/** follow HTTP 3xx responses as redirects. defaults to true. */
101
+
/** Follow HTTP 3xx responses as redirects. defaults to true. */
109
102
followRedirect?: boolean;
110
103
/** The maximum number of redirects to follow, defaults to 10. */
111
104
maxRedirects?: number;
@@ -118,28 +111,26 @@ export type RequestOptions = {
118
111
/**
119
112
* @deprecated
120
113
* Alias to compressed
121
-
* */
114
+
*/
122
115
gzip?: boolean;
123
-
/**
124
-
* Enable timing or not, default is `true`.
125
-
* */
116
+
/** Enable timing or not, default is `true`. */
126
117
timing?: boolean;
127
118
/**
128
-
* Auto retry times on 5xx response, default is `0`. Don't work on streaming request
129
-
* It's not supported by using retry and writeStream, because the retry request can't stop the stream which is consuming.
130
-
**/
119
+
* Auto retry times on 5xx response, default is `0`. Don't work on streaming request It's not supported by using retry
120
+
* and writeStream, because the retry request can't stop the stream which is consuming.
121
+
*/
131
122
retry?: number;
132
123
/** Wait a delay(ms) between retries */
133
124
retryDelay?: number;
134
125
/**
135
-
* Determine whether retry, a response object as the first argument.
136
-
* It will retry when status >= 500 by default. Request error is not included.
126
+
* Determine whether retry, a response object as the first argument. It will retry when status >= 500 by default.
0 commit comments