-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
Request.cs
143 lines (121 loc) · 3.57 KB
/
Request.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// 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.
//NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly
using System.Collections.Specialized;
namespace CefSharp
{
/// <inheritdoc/>
public class Request : IRequest
{
internal Core.Request request = new Core.Request();
/// <inheritdoc/>
public UrlRequestFlags Flags
{
get { return request.Flags; }
set { request.Flags = value; }
}
/// <inheritdoc/>
public string Url
{
get { return request.Url; }
set { request.Url = value; }
}
/// <inheritdoc/>
public ulong Identifier
{
get { return request.Identifier; }
}
/// <inheritdoc/>
public string Method
{
get { return request.Method; }
set { request.Method = value; }
}
/// <inheritdoc/>
public string ReferrerUrl
{
get { return request.ReferrerUrl; }
}
/// <inheritdoc/>
public ResourceType ResourceType
{
get { return request.ResourceType; }
}
/// <inheritdoc/>
public ReferrerPolicy ReferrerPolicy
{
get { return request.ReferrerPolicy; }
}
/// <inheritdoc/>
public NameValueCollection Headers
{
get { return request.Headers; }
set { request.Headers = value; }
}
/// <inheritdoc/>
public IPostData PostData
{
get { return request.PostData; }
set { request.PostData = value; }
}
/// <inheritdoc/>
public TransitionType TransitionType
{
get { return request.TransitionType; }
}
/// <inheritdoc/>
public bool IsDisposed
{
get { return request.IsDisposed; }
}
/// <inheritdoc/>
public bool IsReadOnly
{
get { return request.IsReadOnly; }
}
/// <inheritdoc/>
public void Dispose()
{
request.Dispose();
}
/// <inheritdoc/>
public string GetHeaderByName(string name)
{
return request.GetHeaderByName(name);
}
/// <inheritdoc/>
public void InitializePostData()
{
request.InitializePostData();
}
/// <inheritdoc/>
public void SetHeaderByName(string name, string value, bool overwrite)
{
request.SetHeaderByName(name, value, overwrite);
}
/// <inheritdoc/>
public void SetReferrer(string referrerUrl, ReferrerPolicy policy)
{
request.SetReferrer(referrerUrl, policy);
}
/// <summary>
/// Used internally to get the underlying <see cref="IRequest"/> instance.
/// Unlikely you'll use this yourself.
/// </summary>
/// <returns>the inner most instance</returns>
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public IRequest UnWrap()
{
return request;
}
/// <summary>
/// Create a new <see cref="IRequest"/> instance
/// </summary>
/// <returns>Request</returns>
public static IRequest Create()
{
return new CefSharp.Core.Request();
}
}
}