diff --git a/network/easyjson.go b/network/easyjson.go index 7cebdd2..d1168a1 100644 --- a/network/easyjson.go +++ b/network/easyjson.go @@ -2958,6 +2958,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork26(in *jlexer.Lexer, o } case "mimeType": out.MimeType = string(in.String()) + case "charset": + out.Charset = string(in.String()) case "requestHeaders": if in.IsNull() { in.Skip() @@ -3111,6 +3113,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork26(out *jwriter.Writer out.RawString(prefix) out.String(string(in.MimeType)) } + { + const prefix string = ",\"charset\":" + out.RawString(prefix) + out.String(string(in.Charset)) + } if len(in.RequestHeaders) != 0 { const prefix string = ",\"requestHeaders\":" out.RawString(prefix) diff --git a/network/types.go b/network/types.go index fcf4a05..18319a6 100644 --- a/network/types.go +++ b/network/types.go @@ -1033,6 +1033,7 @@ type Response struct { StatusText string `json:"statusText"` // HTTP response status text. Headers Headers `json:"headers"` // HTTP response headers. MimeType string `json:"mimeType"` // Resource mimeType as determined by the browser. + Charset string `json:"charset"` // Resource charset as determined by the browser (if applicable). RequestHeaders Headers `json:"requestHeaders,omitempty"` // Refined HTTP request headers that were actually transmitted over the network. ConnectionReused bool `json:"connectionReused"` // Specifies whether physical connection was actually reused for this request. ConnectionID float64 `json:"connectionId"` // Physical connection id that was actually used for this request. diff --git a/page/types.go b/page/types.go index bc6a4e0..8ae7b40 100644 --- a/page/types.go +++ b/page/types.go @@ -1076,6 +1076,7 @@ const ( BackForwardCacheNotRestoredReasonWebSocketSticky BackForwardCacheNotRestoredReason = "WebSocketSticky" BackForwardCacheNotRestoredReasonSmartCard BackForwardCacheNotRestoredReason = "SmartCard" BackForwardCacheNotRestoredReasonLiveMediaStreamTrack BackForwardCacheNotRestoredReason = "LiveMediaStreamTrack" + BackForwardCacheNotRestoredReasonUnloadHandler BackForwardCacheNotRestoredReason = "UnloadHandler" BackForwardCacheNotRestoredReasonContentSecurityHandler BackForwardCacheNotRestoredReason = "ContentSecurityHandler" BackForwardCacheNotRestoredReasonContentWebAuthenticationAPI BackForwardCacheNotRestoredReason = "ContentWebAuthenticationAPI" BackForwardCacheNotRestoredReasonContentFileChooser BackForwardCacheNotRestoredReason = "ContentFileChooser" @@ -1327,6 +1328,8 @@ func (t *BackForwardCacheNotRestoredReason) UnmarshalEasyJSON(in *jlexer.Lexer) *t = BackForwardCacheNotRestoredReasonSmartCard case BackForwardCacheNotRestoredReasonLiveMediaStreamTrack: *t = BackForwardCacheNotRestoredReasonLiveMediaStreamTrack + case BackForwardCacheNotRestoredReasonUnloadHandler: + *t = BackForwardCacheNotRestoredReasonUnloadHandler case BackForwardCacheNotRestoredReasonContentSecurityHandler: *t = BackForwardCacheNotRestoredReasonContentSecurityHandler case BackForwardCacheNotRestoredReasonContentWebAuthenticationAPI: