Salesforce Connector 25.1
Salesforce Connector Help

# LuaHttpRequest Methods

This section describes the methods provided by `LuaHttpRequest` objects.

If you have a `LuaHttpRequest` object called `request` you can call its methods using the '`:`' operator. For example:

    request:send()

Constructor | Description
--- | ---
LuaHttpRequest:new | The constructor for a `LuaHttpRequest` object (creates a new `LuaHttpRequest`).

Method | Description
--- | ---
send | Sends the HTTP request.
set_body | Sets the body of the HTTP request.
set_config | Specifies settings to use for sending the HTTP request.
set_header | Adds a header to the HTTP request.
set_headers | Replaces all headers in the HTTP request with new headers.
set_method | Specifies the HTTP request method to use when sending the request, for example `GET` or `POST`.
set_url | Sets the URL that you want to send the HTTP request to.

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 Salesforce Connector 25.1

Topic Title: LuaHttpRequest Methods