outgoingMessage.getHeader(name)


  • name <string> 头部名称
  • 返回:数字 | 字符串 | 字符串[] | 未定义

获取指定名称的 HTTP 头的值。如果该头未设置,返回的值将是 undefined

【Gets the value of the HTTP header with the given name. If that header is not set, the returned value will be undefined.】