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

Method bytes

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

* Sets the HTTP 'Content-Length' header (to avoid chunked transfer encoding) where: * @param length - the header value. Must match the actual payload size. * @return Return value: the current response object. * [See docs](https://hapijs.com/api/17.0.1#-responsebyteslength)

(length: number)

Source from the content-addressed store, hash-verified

137 * [See docs](https://hapijs.com/api/17.0.1#-responsebyteslength)
138 */
139 bytes(length: number): ResponseObject;
140
141 /**
142 * Controls the 'Content-Type' HTTP header 'charset' property of the response.

Callers 3

transmit.jsFile · 0.65
transmit.jsFile · 0.65
fileStreamHandlerFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected