#How do you detect whether an http request has been aborted with Bun.serve?
1 messages · Page 1 of 1 (latest)
You can use AbortSignal
Nice! Does it get passed into the fetch function?
Web standards, gotta love em.
While I'm here, is there a way to detect once the Response has been fully sent?
not sure
perhaps if youre using a ReadableStream, it will call the close handler on it
not 100% sure if this is called on socket end or simply "i read all the data"
Hmm. Basically I want to include bun sending the response in telemetry spans.
This is working, thanks 🙂 (making an offical http integration for the effect-ts ecosystem, and needed to integrate with effect's interruption model)