Rohttpserver, Ifuserdata – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 199

Advertising
background image

191

GetRequestParams() As Object: Returns an roAssociativeArray containing all the URI parameters.

AddResponseHeader(header As String, value As String) As Boolean: Adds the specified HTTP
header and value to the response. This function returns True upon success.

AddResponseHeaders(a As Object) As Boolean. Adds the specified HTTP header/value pairs to the
response. This method expects an

roAssociativeArray

of header names mapped to header values, which can be of

type roString, roInt, or roFloat. Any other value types will cause the request to fail, though a subset of headers to
might be set before the failure occurs. This function returns True upon success.

SendResponse(http_status_code As Integer) As Boolean: Sends the HTTP response using the
specified HTTP status code. To ensure that the response is sent, this function needs to be called once the script
has finished handling the event. This function returns False upon failure.

GetUrl() As String

GetFormData() As Object: Returns an roAssociativeArray containing all the form data.
See

roHttpServer.AddPostToFormData

for more information.


The ifUserData interface provides the following:

SetUserData(user_data As Object): Sets the user data that will be returned when events are raised.

GetUserData() As Object: Returns the user data that has previously been set via SetUserData(). It will
return Invalid if no data has been set.

Advertising