ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
54 lines (26 loc) • 803 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [setDefaultHeaders](./ibm-cloud-sdk-core.baseservice.setdefaultheaders.md)
## BaseService.setDefaultHeaders() method
Set the HTTP headers to be sent in every request.
**Signature:**
```typescript
setDefaultHeaders(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>
the map of headers to include in requests.
</td></tr>
</tbody></table>
**Returns:**
void