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: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,13 @@ If your default headers already include **all** required headers for the endpoin
225
225
client.getUsersBulkJobid({path: {jobId: "123"}});
226
226
```
227
227
228
+
NOTE:
229
+
230
+
In this context, the "default HTTP headers" are different from the headers in `ClientOptions`.
231
+
The headers in `ClientOptions` are always sent implicitly, regardless of the header parameters specified in endpoint methods.
232
+
In contrast, the "default HTTP headers" mechanism is intended to reduce the need to repeatedly specify common header parameters
233
+
in each endpoint method when their values are already known.
234
+
228
235
## Articles
229
236
230
237
- [openapi-fetch-gen – Generate TypeScript API client from OpenAPI TypeScript interface definitions created by openapi-typescript - DEV Community](https://dev.to/moznion/openapi-fetch-gen-generate-typescript-api-client-from-openapi-typescript-interface-definitions-kjd)
0 commit comments