MCPcopy Create free account
hub / github.com/nodejs/undici / onRequestStart

Method onRequestStart

docs/examples/proxy/proxy.js:52–59  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

50 }
51
52 onRequestStart (controller) {
53 if (this.req.aborted) {
54 controller.abort()
55 } else {
56 this.abort = (reason) => controller.abort(reason)
57 this.res.on('close', this.abort)
58 }
59 }
60
61 onResponseStart (controller, statusCode) {
62 if (statusCode < 200) {

Callers

nothing calls this directly

Calls 2

abortMethod · 0.65
onMethod · 0.45

Tested by

no test coverage detected