setRestRequestHeaders()

The serviceLib.setRestRequestHeaders() system function sets the HTTP headers that are transmitted to a REST service. This function is available only from the handlers and libraries used in Rich UI.

Syntax

  serviceLib.setRestRequestHeaders(variable Service | Interface in, headers Dictionary in)
variable
A variable used to access the service. The variable is based on a Service or Interface part.
headers
A dictionary. Each entry key is the name of an HTTP header, and the related value (a string) is assigned to the header.

Feedback