MCPcopy
hub / github.com/hapijs/hapi / charset

Method charset

lib/types/response.d.ts:149–149  ·  view source on GitHub ↗

* Controls the 'Content-Type' HTTP header 'charset' property of the response. * * When invoked without any parameter, will prevent hapi from applying its default charset normalization to 'utf-8' * * When 'charset' parameter is provided, will set the 'Content-Type' HTTP header 'charset' p

(charset?: string)

Source from the content-addressed store, hash-verified

147 * [See docs](https://hapijs.com/api/17.0.1#-responsecharsetcharset)
148 */
149 charset(charset?: string): ResponseObject | undefined;
150
151 /**
152 * Sets the HTTP status code where:

Callers 3

headers.jsFile · 0.65
handlerFunction · 0.65
onPreResponseFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected