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

Method _setResponse

lib/request.js:530–547  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

528 }
529
530 _setResponse(response) {
531
532 if (this.response &&
533 !this.response.isBoom &&
534 this.response !== response &&
535 this.response.source !== response.source) {
536
537 this.response._close?.();
538 }
539
540 if (this.info.completed) {
541 response._close?.();
542
543 return;
544 }
545
546 this.response = response;
547 }
548
549 _setState(name, value, options) {
550

Callers 6

handler.jsFile · 0.80
transmit.jsFile · 0.80
_lifecycleMethod · 0.80
_invokeMethod · 0.80
_replyMethod · 0.80
_postCycleMethod · 0.80

Calls 1

_closeMethod · 0.80

Tested by

no test coverage detected