1 # http\Env\Response http\Env\Response::setContentDisposition(array $disposition_params)
3 Set the reponse's content disposition parameters.
7 * array $disposition_params
8 MIME content disposition as http\Params array.
12 * http\Env\Response, self.
16 * http\Exception\InvalidArgumentException
20 <?php ob_end_Clean();chdir(__DIR__."/../../..");
21 $res = new http\Env\Response;
22 $res->setBody(new http\Message\Body(fopen("http.zip", "r")));
23 $res->setContentType("application/zip");
24 $res->setContentDisposition(["attachment" => ["filename" => "download.zip"]]);
31 X-Powered-By: PHP/5.5.5
32 Content-Type: application/zip
33 Content-Disposition: attachment;filename=download.zip
34 ETag: "12009be-527d3e84-a0"
35 Last-Modified: Fri, 08 Nov 2013 19:41:56 GMT