We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced12b5 commit 5d7b145Copy full SHA for 5d7b145
hijack.go
@@ -230,6 +230,7 @@ func (h *Hijack) LoadResponse(client *http.Client, loadBody bool) error {
230
defer func() { _ = res.Body.Close() }()
231
232
h.Response.payload.ResponseCode = res.StatusCode
233
+ h.Response.RawResponse = res
234
235
for k, vs := range res.Header {
236
for _, v := range vs {
@@ -326,8 +327,9 @@ func (ctx *HijackRequest) IsNavigation() bool {
326
327
328
// HijackResponse context
329
type HijackResponse struct {
- payload *proto.FetchFulfillRequest
330
- fail *proto.FetchFailRequest
+ payload *proto.FetchFulfillRequest
331
+ RawResponse *http.Response
332
+ fail *proto.FetchFailRequest
333
}
334
335
// Payload to respond the request from the browser.
0 commit comments