UNPKG

ibm-cloud-sdk-core

Version:

Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.

54 lines (26 loc) 882 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [TokenRequestBasedAuthenticator](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md) &gt; [setHeaders](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md) ## TokenRequestBasedAuthenticator.setHeaders() method Set headers. **Signature:** ```typescript setHeaders(headers: OutgoingHttpHeaders): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> headers </td><td> OutgoingHttpHeaders </td><td> a set of HTTP headers to be sent with each outbound token server request. Overwrites previous default headers. </td></tr> </tbody></table> **Returns:** void