HttpResponse::setContentType
HttpResponse::setETag
HttpResponse
PHP Manual

# HttpResponse::setData

(PECL pecl_http >= 0.10.0)

HttpResponse::setData — Set data

### Descrição

static bool HttpResponse::setData ( mixed `$data` )

Set the data to be sent.

> Nota: Previously calculated or defined ETag and Last-Modified will be recalculated and redefined.

### Parâmetros

`data`

  data to send

### Valor Retornado

Retorna `TRUE` em caso de sucesso ou `FALSE` em caso de falha.

### Veja Também

- HttpResponse::getData() - Get data
- HttpResponse::getFile() - Get file
- HttpResponse::setFile() - Set file
- HttpResponse::getStream() - Get Stream
- HttpResponse::setStream() - Set stream

HttpResponse::setContentType
HttpResponse::setETag
HttpResponse
PHP Manual