-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathRequestPattern.cs
More file actions
75 lines (69 loc) · 2.39 KB
/
RequestPattern.cs
File metadata and controls
75 lines (69 loc) · 2.39 KB
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
// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.Fetch
{
/// <summary>
/// RequestPattern
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase
{
/// <summary>
/// Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is
/// backslash. Omitting is equivalent to "*".
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("urlPattern"), IsRequired = (false))]
public string UrlPattern
{
get;
set;
}
/// <summary>
/// If set, only requests for matching resource types will be intercepted.
/// </summary>
public CefSharp.DevTools.Network.ResourceType? ResourceType
{
get
{
return (CefSharp.DevTools.Network.ResourceType? )(StringToEnum(typeof(CefSharp.DevTools.Network.ResourceType? ), resourceType));
}
set
{
resourceType = (EnumToString(value));
}
}
/// <summary>
/// If set, only requests for matching resource types will be intercepted.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (false))]
internal string resourceType
{
get;
set;
}
/// <summary>
/// Stage at wich to begin intercepting requests. Default is Request.
/// </summary>
public CefSharp.DevTools.Fetch.RequestStage? RequestStage
{
get
{
return (CefSharp.DevTools.Fetch.RequestStage? )(StringToEnum(typeof(CefSharp.DevTools.Fetch.RequestStage? ), requestStage));
}
set
{
requestStage = (EnumToString(value));
}
}
/// <summary>
/// Stage at wich to begin intercepting requests. Default is Request.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("requestStage"), IsRequired = (false))]
internal string requestStage
{
get;
set;
}
}
}