文字

HttpResponse::setETag

(PECL pecl_http >= 0.10.0)

HttpResponse::setETagSet ETag

说明

static bool HttpResponse::setETag ( string $etag )

Set a custom ETag. Use this only if you know what you're doing.

参数

etag

unquoted string as parameter containing the ETag

返回值

成功时返回 TRUE , 或者在失败时返回 FALSE

参见

  • HttpResponse::getLastModified() - Get last modified
  • HttpResponse::setLastModified() - Set last modified
  • HttpResponse::getETag() - Get ETag
上一篇: 下一篇: