Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit f284e4f

Browse files
committed
2 parents a67114c + 91527d3 commit f284e4f

16 files changed

+169
-246
lines changed

Titanium.Web.Proxy/ProxyServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public ExceptionHandler ExceptionFunc
212212

213213
/// <summary>
214214
/// A callback to authenticate clients.
215-
/// Parameters are username & password as provided by client.
215+
/// Parameters are username and password as provided by client.
216216
/// Return true for successful authentication.
217217
/// </summary>
218218
public Func<string, string, Task<bool>> AuthenticateUserFunc { get; set; }

docs/api/Titanium.Web.Proxy.EventArguments.AsyncEventHandler-1.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383

8484
<h1 id="Titanium_Web_Proxy_EventArguments_AsyncEventHandler_1" data-uid="Titanium.Web.Proxy.EventArguments.AsyncEventHandler`1" class="text-break">Delegate AsyncEventHandler&lt;TEventArgs&gt;
8585
</h1>
86-
<div class="markdown level0 summary"></div>
86+
<div class="markdown level0 summary"><p>A generic asynchronous event handler used by this proxy.</p>
87+
</div>
8788
<div class="markdown level0 conceptual"></div>
8889
<h6><strong>Namespace</strong>: <a class="xref" href="Titanium.Web.Proxy.EventArguments.html">Titanium.Web.Proxy.EventArguments</a></h6>
8990
<h6><strong>Assembly</strong>: Titanium.Web.Proxy.dll</h6>
@@ -104,12 +105,14 @@ <h5 class="parameters">Parameters</h5>
104105
<tr>
105106
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></td>
106107
<td><span class="parametername">sender</span></td>
107-
<td></td>
108+
<td><p>The proxy server instance.</p>
109+
</td>
108110
</tr>
109111
<tr>
110112
<td><span class="xref">TEventArgs</span></td>
111113
<td><span class="parametername">e</span></td>
112-
<td></td>
114+
<td><p>The event arguments.</p>
115+
</td>
113116
</tr>
114117
</tbody>
115118
</table>

docs/api/Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383

8484
<h1 id="Titanium_Web_Proxy_EventArguments_BeforeSslAuthenticateEventArgs" data-uid="Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs" class="text-break">Class BeforeSslAuthenticateEventArgs
8585
</h1>
86-
<div class="markdown level0 summary"></div>
86+
<div class="markdown level0 summary"><p>This is used in transparent endpoint before authenticating client. </p>
87+
</div>
8788
<div class="markdown level0 conceptual"></div>
8889
<div class="inheritance">
8990
<h5>Inheritance</h5>
@@ -130,7 +131,10 @@ <h3 id="properties">Properties
130131

131132
<a id="Titanium_Web_Proxy_EventArguments_BeforeSslAuthenticateEventArgs_DecryptSsl_" data-uid="Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs.DecryptSsl*"></a>
132133
<h4 id="Titanium_Web_Proxy_EventArguments_BeforeSslAuthenticateEventArgs_DecryptSsl" data-uid="Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs.DecryptSsl">DecryptSsl</h4>
133-
<div class="markdown level1 summary"></div>
134+
<div class="markdown level1 summary"><p>Should we decrypt the SSL request?
135+
If true we decrypt with fake certificate.
136+
If false we relay the connection to the hostname mentioned in SniHostname.</p>
137+
</div>
134138
<div class="markdown level1 conceptual"></div>
135139
<h5 class="decalaration">Declaration</h5>
136140
<div class="codewrapper">
@@ -155,7 +159,8 @@ <h5 class="propertyValue">Property Value</h5>
155159

156160
<a id="Titanium_Web_Proxy_EventArguments_BeforeSslAuthenticateEventArgs_SniHostName_" data-uid="Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs.SniHostName*"></a>
157161
<h4 id="Titanium_Web_Proxy_EventArguments_BeforeSslAuthenticateEventArgs_SniHostName" data-uid="Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs.SniHostName">SniHostName</h4>
158-
<div class="markdown level1 summary"></div>
162+
<div class="markdown level1 summary"><p>The server name indication hostname.</p>
163+
</div>
159164
<div class="markdown level1 conceptual"></div>
160165
<h5 class="decalaration">Declaration</h5>
161166
<div class="codewrapper">
@@ -182,7 +187,8 @@ <h3 id="methods">Methods
182187

183188
<a id="Titanium_Web_Proxy_EventArguments_BeforeSslAuthenticateEventArgs_TerminateSession_" data-uid="Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs.TerminateSession*"></a>
184189
<h4 id="Titanium_Web_Proxy_EventArguments_BeforeSslAuthenticateEventArgs_TerminateSession" data-uid="Titanium.Web.Proxy.EventArguments.BeforeSslAuthenticateEventArgs.TerminateSession">TerminateSession()</h4>
185-
<div class="markdown level1 summary"></div>
190+
<div class="markdown level1 summary"><p>Terminate the request abruptly.</p>
191+
</div>
186192
<div class="markdown level1 conceptual"></div>
187193
<h5 class="decalaration">Declaration</h5>
188194
<div class="codewrapper">

docs/api/Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
<h1 id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs" class="text-break">Class CertificateSelectionEventArgs
8585
</h1>
86-
<div class="markdown level0 summary"><p>An argument passed on to user for client certificate selection during mutual SSL authentication</p>
86+
<div class="markdown level0 summary"><p>An argument passed on to user for client certificate selection during mutual SSL authentication.</p>
8787
</div>
8888
<div class="markdown level0 conceptual"></div>
8989
<div class="inheritance">
@@ -131,7 +131,7 @@ <h3 id="properties">Properties
131131

132132
<a id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_AcceptableIssuers_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.AcceptableIssuers*"></a>
133133
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_AcceptableIssuers" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.AcceptableIssuers">AcceptableIssuers</h4>
134-
<div class="markdown level1 summary"><p>Acceptable issuers.</p>
134+
<div class="markdown level1 summary"><p>Acceptable issuers mentioned by server.</p>
135135
</div>
136136
<div class="markdown level1 conceptual"></div>
137137
<h5 class="decalaration">Declaration</h5>
@@ -157,7 +157,7 @@ <h5 class="propertyValue">Property Value</h5>
157157

158158
<a id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_ClientCertificate_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.ClientCertificate*"></a>
159159
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_ClientCertificate" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.ClientCertificate">ClientCertificate</h4>
160-
<div class="markdown level1 summary"><p>Client Certificate.</p>
160+
<div class="markdown level1 summary"><p>Client Certificate we selected.</p>
161161
</div>
162162
<div class="markdown level1 conceptual"></div>
163163
<h5 class="decalaration">Declaration</h5>
@@ -183,7 +183,7 @@ <h5 class="propertyValue">Property Value</h5>
183183

184184
<a id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_LocalCertificates_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.LocalCertificates*"></a>
185185
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_LocalCertificates" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.LocalCertificates">LocalCertificates</h4>
186-
<div class="markdown level1 summary"><p>Local certificates.</p>
186+
<div class="markdown level1 summary"><p>Local certificates with matching issuers.</p>
187187
</div>
188188
<div class="markdown level1 conceptual"></div>
189189
<h5 class="decalaration">Declaration</h5>
@@ -209,7 +209,7 @@ <h5 class="propertyValue">Property Value</h5>
209209

210210
<a id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_RemoteCertificate_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.RemoteCertificate*"></a>
211211
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_RemoteCertificate" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.RemoteCertificate">RemoteCertificate</h4>
212-
<div class="markdown level1 summary"><p>Remote certificate.</p>
212+
<div class="markdown level1 summary"><p>Remote certificate of the server.</p>
213213
</div>
214214
<div class="markdown level1 conceptual"></div>
215215
<h5 class="decalaration">Declaration</h5>
@@ -235,7 +235,7 @@ <h5 class="propertyValue">Property Value</h5>
235235

236236
<a id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_Sender_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.Sender*"></a>
237237
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_Sender" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.Sender">Sender</h4>
238-
<div class="markdown level1 summary"><p>Sender object.</p>
238+
<div class="markdown level1 summary"><p>The proxy server instance.</p>
239239
</div>
240240
<div class="markdown level1 conceptual"></div>
241241
<h5 class="decalaration">Declaration</h5>
@@ -261,7 +261,7 @@ <h5 class="propertyValue">Property Value</h5>
261261

262262
<a id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_TargetHost_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.TargetHost*"></a>
263263
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateSelectionEventArgs_TargetHost" data-uid="Titanium.Web.Proxy.EventArguments.CertificateSelectionEventArgs.TargetHost">TargetHost</h4>
264-
<div class="markdown level1 summary"><p>Target host.</p>
264+
<div class="markdown level1 summary"><p>The host to which we are authenticating against.</p>
265265
</div>
266266
<div class="markdown level1 conceptual"></div>
267267
<h5 class="decalaration">Declaration</h5>

docs/api/Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383

8484
<h1 id="Titanium_Web_Proxy_EventArguments_CertificateValidationEventArgs" data-uid="Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs" class="text-break">Class CertificateValidationEventArgs
8585
</h1>
86-
<div class="markdown level0 summary"><p>An argument passed on to the user for validating the server certificate during SSL authentication</p>
86+
<div class="markdown level0 summary"><p>An argument passed on to the user for validating the server certificate
87+
during SSL authentication.</p>
8788
</div>
8889
<div class="markdown level0 conceptual"></div>
8990
<div class="inheritance">
@@ -131,7 +132,7 @@ <h3 id="properties">Properties
131132

132133
<a id="Titanium_Web_Proxy_EventArguments_CertificateValidationEventArgs_Certificate_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs.Certificate*"></a>
133134
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateValidationEventArgs_Certificate" data-uid="Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs.Certificate">Certificate</h4>
134-
<div class="markdown level1 summary"><p>Certificate</p>
135+
<div class="markdown level1 summary"><p>Server certificate.</p>
135136
</div>
136137
<div class="markdown level1 conceptual"></div>
137138
<h5 class="decalaration">Declaration</h5>
@@ -157,7 +158,7 @@ <h5 class="propertyValue">Property Value</h5>
157158

158159
<a id="Titanium_Web_Proxy_EventArguments_CertificateValidationEventArgs_Chain_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs.Chain*"></a>
159160
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateValidationEventArgs_Chain" data-uid="Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs.Chain">Chain</h4>
160-
<div class="markdown level1 summary"><p>Certificate chain</p>
161+
<div class="markdown level1 summary"><p>Certificate chain.</p>
161162
</div>
162163
<div class="markdown level1 conceptual"></div>
163164
<h5 class="decalaration">Declaration</h5>
@@ -183,7 +184,7 @@ <h5 class="propertyValue">Property Value</h5>
183184

184185
<a id="Titanium_Web_Proxy_EventArguments_CertificateValidationEventArgs_IsValid_" data-uid="Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs.IsValid*"></a>
185186
<h4 id="Titanium_Web_Proxy_EventArguments_CertificateValidationEventArgs_IsValid" data-uid="Titanium.Web.Proxy.EventArguments.CertificateValidationEventArgs.IsValid">IsValid</h4>
186-
<div class="markdown level1 summary"><p>is a valid certificate?</p>
187+
<div class="markdown level1 summary"><p>Is the given server certificate is valid?</p>
187188
</div>
188189
<div class="markdown level1 conceptual"></div>
189190
<h5 class="decalaration">Declaration</h5>

docs/api/Titanium.Web.Proxy.EventArguments.DataEventArgs.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383

8484
<h1 id="Titanium_Web_Proxy_EventArguments_DataEventArgs" data-uid="Titanium.Web.Proxy.EventArguments.DataEventArgs" class="text-break">Class DataEventArgs
8585
</h1>
86-
<div class="markdown level0 summary"></div>
86+
<div class="markdown level0 summary"><p>Wraps the data sent/received by a proxy server instance.</p>
87+
</div>
8788
<div class="markdown level0 conceptual"></div>
8889
<div class="inheritance">
8990
<h5>Inheritance</h5>
@@ -130,7 +131,8 @@ <h3 id="properties">Properties
130131

131132
<a id="Titanium_Web_Proxy_EventArguments_DataEventArgs_Buffer_" data-uid="Titanium.Web.Proxy.EventArguments.DataEventArgs.Buffer*"></a>
132133
<h4 id="Titanium_Web_Proxy_EventArguments_DataEventArgs_Buffer" data-uid="Titanium.Web.Proxy.EventArguments.DataEventArgs.Buffer">Buffer</h4>
133-
<div class="markdown level1 summary"></div>
134+
<div class="markdown level1 summary"><p>The buffer with data.</p>
135+
</div>
134136
<div class="markdown level1 conceptual"></div>
135137
<h5 class="decalaration">Declaration</h5>
136138
<div class="codewrapper">
@@ -155,7 +157,8 @@ <h5 class="propertyValue">Property Value</h5>
155157

156158
<a id="Titanium_Web_Proxy_EventArguments_DataEventArgs_Count_" data-uid="Titanium.Web.Proxy.EventArguments.DataEventArgs.Count*"></a>
157159
<h4 id="Titanium_Web_Proxy_EventArguments_DataEventArgs_Count" data-uid="Titanium.Web.Proxy.EventArguments.DataEventArgs.Count">Count</h4>
158-
<div class="markdown level1 summary"></div>
160+
<div class="markdown level1 summary"><p>Length from offset in Buffer with valid data.</p>
161+
</div>
159162
<div class="markdown level1 conceptual"></div>
160163
<h5 class="decalaration">Declaration</h5>
161164
<div class="codewrapper">
@@ -180,7 +183,8 @@ <h5 class="propertyValue">Property Value</h5>
180183

181184
<a id="Titanium_Web_Proxy_EventArguments_DataEventArgs_Offset_" data-uid="Titanium.Web.Proxy.EventArguments.DataEventArgs.Offset*"></a>
182185
<h4 id="Titanium_Web_Proxy_EventArguments_DataEventArgs_Offset" data-uid="Titanium.Web.Proxy.EventArguments.DataEventArgs.Offset">Offset</h4>
183-
<div class="markdown level1 summary"></div>
186+
<div class="markdown level1 summary"><p>Offset in Buffer where valid data begins.</p>
187+
</div>
184188
<div class="markdown level1 conceptual"></div>
185189
<h5 class="decalaration">Declaration</h5>
186190
<div class="codewrapper">

docs/api/Titanium.Web.Proxy.EventArguments.MultipartRequestPartSentEventArgs.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383

8484
<h1 id="Titanium_Web_Proxy_EventArguments_MultipartRequestPartSentEventArgs" data-uid="Titanium.Web.Proxy.EventArguments.MultipartRequestPartSentEventArgs" class="text-break">Class MultipartRequestPartSentEventArgs
8585
</h1>
86-
<div class="markdown level0 summary"></div>
86+
<div class="markdown level0 summary"><p>Class that wraps the multipart sent request arguments.</p>
87+
</div>
8788
<div class="markdown level0 conceptual"></div>
8889
<div class="inheritance">
8990
<h5>Inheritance</h5>
@@ -164,7 +165,8 @@ <h3 id="properties">Properties
164165

165166
<a id="Titanium_Web_Proxy_EventArguments_MultipartRequestPartSentEventArgs_Boundary_" data-uid="Titanium.Web.Proxy.EventArguments.MultipartRequestPartSentEventArgs.Boundary*"></a>
166167
<h4 id="Titanium_Web_Proxy_EventArguments_MultipartRequestPartSentEventArgs_Boundary" data-uid="Titanium.Web.Proxy.EventArguments.MultipartRequestPartSentEventArgs.Boundary">Boundary</h4>
167-
<div class="markdown level1 summary"></div>
168+
<div class="markdown level1 summary"><p>Boundary</p>
169+
</div>
168170
<div class="markdown level1 conceptual"></div>
169171
<h5 class="decalaration">Declaration</h5>
170172
<div class="codewrapper">
@@ -189,7 +191,8 @@ <h5 class="propertyValue">Property Value</h5>
189191

190192
<a id="Titanium_Web_Proxy_EventArguments_MultipartRequestPartSentEventArgs_Headers_" data-uid="Titanium.Web.Proxy.EventArguments.MultipartRequestPartSentEventArgs.Headers*"></a>
191193
<h4 id="Titanium_Web_Proxy_EventArguments_MultipartRequestPartSentEventArgs_Headers" data-uid="Titanium.Web.Proxy.EventArguments.MultipartRequestPartSentEventArgs.Headers">Headers</h4>
192-
<div class="markdown level1 summary"></div>
194+
<div class="markdown level1 summary"><p>The header collection.</p>
195+
</div>
193196
<div class="markdown level1 conceptual"></div>
194197
<h5 class="decalaration">Declaration</h5>
195198
<div class="codewrapper">

0 commit comments

Comments
 (0)