SharePoint OData Connector 25.1
SharePoint OData Connector Help

# set_headers

The `set_headers` method replaces all headers in the HTTP request with new headers.

To add a header without changing existing headers, use the method set_header.

## Syntax

    set_headers( headers )

## Arguments

Argument | Description
--- | ---
`headers` | (table) The new HTTP headers to add to the request. The table must map header names to values.

## Example

    request:set_headers( {X-EXAMPLE="Example", X-ANOTHER="ANOTHER"} )

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery SharePoint OData Connector 25.1

Topic Title: set_headers