Open topic with navigation

# 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.

© 2016-2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm