-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathHybridWebViewProxyEventArgs.cs
39 lines (34 loc) · 1.17 KB
/
HybridWebViewProxyEventArgs.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
namespace HybridWebView
{
/// <summary>
/// Event arg object for a proxy request from the <see cref="HybridWebView"/>.
/// </summary>
public class HybridWebViewProxyEventArgs
{
/// <summary>
/// Creates a new instance of <see cref="HybridWebViewProxyEventArgs"/>.
/// </summary>
/// <param name="fullUrl">The full request URL.</param>
public HybridWebViewProxyEventArgs(string fullUrl)
{
Url = fullUrl;
QueryParams = QueryStringHelper.GetKeyValuePairs(fullUrl);
}
/// <summary>
/// The full request URL.
/// </summary>
public string Url { get; }
/// <summary>
/// Query string values extracted from the request URL.
/// </summary>
public IDictionary<string, string> QueryParams { get; }
/// <summary>
/// The response content type.
/// </summary>
public string? ResponseContentType { get; set; } = "text/plain";
/// <summary>
/// The response stream to be used to respond to the request.
/// </summary>
public Stream? ResponseStream { get; set; } = null;
}
}