Passa al contenuto principale

ResponseHeader

Structure

ResponseHeader(sHeader, sValue)

Parameters

| Parameter | Type | Description
| sHeader | String | the header in the packet response that you want to setsValue | String | the header value |

Return Value

String

Description

Use this function to set a header value in the web packet response. Important: Set any headers BEFORE you set the message body response using either ResponseBodyAsText or ResponseBodyAsFile.

Example

ResponseHeader("X-CustomHeader", "MyValue") |