You can communicate information about the request and the response through header fields in the HTTP response.
Integration Server will generate some header fields, such as Set-Cookie, WWW-Authenticate, Content-Type, Content-Length, and Connection. You can use the
pub.flow:setResponseHeader to set Content-Type and other header fields. You can also set the header fields of an HTTP request by adding a variable named
$httpResponse that references the
pub.flow:httpResponse document type to the flow service pipeline. For more information on this document type, see
pub.flow:HTTPResponse..
HTTP/1.1 defines the header fields that can appear in a response in three sections of RFC 2616:
4.5,
6.2, and
7.1. Examine these codes to determine which are appropriate for your application.