HttpResponse::setLastModified
HttpResponse::setThrottleDelay
The HttpResponse
PHP Manual

# HttpResponse::setStream

(PECL pecl_http >= 0.10.0)

HttpResponse::setStream — Set stream

### Descripción

static bool HttpResponse::setStream ( resource `$stream` )

Set the resource to be sent.

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

### Lista de parámetros

`stream`

  already opened stream from which the data to send will be read

### Valores retornados

Devuelve `TRUE` si todo se llevó a cabo correctamente, `FALSE` en caso de fallo.

### Ver también

- HttpResponse::getData - Get data
- HttpResponse::setData - Set data
- HttpResponse::getFile - Get file
- HttpResponse::setFile - Set file
- HttpResponse::getStream - Get Stream

HttpResponse::setLastModified
HttpResponse::setThrottleDelay
The HttpResponse
PHP Manual