(快速參考)

標頭

目的

將標頭新增至回應。

範例

// Adds a header to the response
header 'Cache-Control', 'max-age=84600, public'

說明

新增標頭至回應的方法。

參數

  • headerName - 要新增的標頭名稱

  • headerValue - 要新增的標頭值