-
Notifications
You must be signed in to change notification settings - Fork 0
/
DevToolsProtocolModels.cs
112 lines (82 loc) · 2.98 KB
/
DevToolsProtocolModels.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace CdpVsNewWindow
{
public record AutoAttachedSession
{
[JsonPropertyName("sessionId")]
public string SessionId { get; init; }
[JsonPropertyName("targetInfo")]
public TargetInfo TargetInfo { get; init; }
[JsonPropertyName("waitingForDebugger")]
public bool WaitingForDebugger { get; init; }
}
public record TargetInfo
{
[JsonPropertyName("attached")]
public bool Attached { get; init; }
[JsonPropertyName("browserContextId")]
public string BrowserContextId { get; init; }
[JsonPropertyName("canAccessOpener")]
public bool CanAccessOpener { get; init; }
[JsonPropertyName("targetId")]
public string TargetId { get; init; }
[JsonPropertyName("title")]
public string Title { get; init; }
[JsonPropertyName("type")]
public string Type { get; init; }
[JsonPropertyName("url")]
public string Url { get; init; }
}
public record Request
{
[JsonPropertyName("headers")]
public Dictionary<string, string> Headers { get; init; }
[JsonPropertyName("initialPriority")]
public string InitialPriority { get; init; }
[JsonPropertyName("method")]
public string Method { get; init; }
[JsonPropertyName("referrerPolicy")]
public string ReferrerPolicy { get; init; }
[JsonPropertyName("url")]
public Uri Url { get; init; }
[JsonPropertyName("urlFragment")]
public string UrlFragment { get; init; }
[JsonPropertyName("mixedContentType")]
public string MixedContentType { get; init; }
[JsonPropertyName("isLinkPreload")]
public bool? IsLinkPreload { get; init; }
[JsonPropertyName("postData")]
public string PostData { get; init; }
[JsonPropertyName("hasPostData")]
public bool? HasPostData { get; init; }
}
public record ResponseHeader
{
[JsonPropertyName("name")]
public string Name { get; init; }
[JsonPropertyName("value")]
public string Value { get; init; }
}
public record RequestPausedEventArgs
{
[JsonPropertyName("frameId")]
public string FrameId { get; init; }
[JsonPropertyName("request")]
public Request Request { get; init; }
[JsonPropertyName("requestId")]
public string RequestId { get; init; }
[JsonPropertyName("resourceType")]
public string ResourceType { get; init; }
[JsonPropertyName("responseStatusCode")]
public int? ResponseStatusCode { get; init; }
[JsonPropertyName("responseHeaders")]
public IReadOnlyList<ResponseHeader> ResponseHeaders { get; init; }
[JsonPropertyName("networkId")]
public string NetworkId { get; init; }
}
}