- TIBCO BusinessEvents®
- Standard
- HTTP
- Servlet
- Response

# HTTP.Servlet.Response.setResponseContent()

## Signature

`void setResponseContent(Object context, Object content, boolean commitResponse)`

## Domain

ACTION, CONDITION, BUI

## Description

Sets the String or byte[] response content in the servlet response, and sends the response.

## Parameters

Name | Type | Description
--- | --- | ---
`context` | `Object` | The context (AsyncContext) associated with a servlet request/response.
`content` | `Object` | The String/byte[] response content.
`commitResponse` | `boolean` | Whether response should be immediately committed or not.

## Returns

Type | Description
--- | ---
`void` |