string http\Message\Body::etag()

Retrieve the ETag of the body.

Params:

None.

Returns:

Example:


<?php
$temp 
= (new http\Message\Body)->etag();
$file = (new http\Message\Body(fopen(__FILE__,"r")))->etag();

ini_set("http.etag.mode""bogus");
$fail = (new http\Message\Body)->etag();

var_dump(compact("temp""file""fail"));
?>

Yields:


array(3) {
  ["temp"]=>
  string(8) "00000000"
  ["file"]=>
  string(20) "138043f-527b91d5-28c"
  ["fail"]=>
  bool(false)
}