From d01a13c6429205bdf16f474fd405adb187df27e4 Mon Sep 17 00:00:00 2001 From: Anthony Rhodes Date: Wed, 11 Dec 2024 11:10:15 -0500 Subject: [PATCH] feat: expose HijackRequest.event --- hijack.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hijack.go b/hijack.go index a02d4f33..c19d0c8e 100644 --- a/hijack.go +++ b/hijack.go @@ -255,6 +255,11 @@ type HijackRequest struct { req *http.Request } +// Event associated to the request. +func (ctx *HijackRequest) Event() *proto.FetchRequestPaused { + return ctx.event +} + // Type of the resource. func (ctx *HijackRequest) Type() proto.NetworkResourceType { return ctx.event.ResourceType