response.getHeader(name)


读出已排队但未发送到客户端的标头。 该名称不区分大小写。

const contentType = response.getHeader('content-type');

Reads out a header that has already been queued but not sent to the client. The name is case-insensitive.

const contentType = response.getHeader('content-type');