fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.69k stars 151 forks source link

feat(typescript): RequestOptions takes in arbitrary headers #5228

Closed dsinghvi closed 1 day ago

dsinghvi commented 1 day ago

Feat: Added support for passing additional headers in request options. For example:

  const response = await client.someEndpoint(..., {
    headers: {
      'X-Custom-Header': 'custom value'
    }
  });
github-actions[bot] commented 1 day ago

🌿 Preview your docs: https://fern-preview-4104dd2e-dc4b-4de6-91b3-4ea869eda62d.docs.buildwithfern.com/learn