Commit f1410e9f authored by justcoding121's avatar justcoding121 Committed by justcoding121

add comments

parent 25948585
...@@ -32,6 +32,11 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -32,6 +32,11 @@ namespace Titanium.Web.Proxy.EventArguments
/// </summary> /// </summary>
private Func<SessionEventArgs, Task> httpResponseHandler; private Func<SessionEventArgs, Task> httpResponseHandler;
/// <summary>
/// Backing field for corresponding public property
/// </summary>
private bool reRequest;
/// <summary> /// <summary>
/// Holds a reference to client /// Holds a reference to client
/// </summary> /// </summary>
...@@ -43,10 +48,24 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -43,10 +48,24 @@ namespace Titanium.Web.Proxy.EventArguments
/// </summary> /// </summary>
public Guid Id => WebSession.RequestId; public Guid Id => WebSession.RequestId;
/// <summary> /// <summary>
/// Should we send the request again /// Should we send the request again
/// </summary> /// </summary>
public bool ReRequest { get; set; } public bool ReRequest
{
get { return reRequest; }
set
{
if (WebSession.Response.ResponseStatusCode == null)
{
throw new Exception("Response status code is null. Cannot request again a request "
+ "which was never send to server.");
}
reRequest = value;
}
}
/// <summary> /// <summary>
/// Does this session uses SSL /// Does this session uses SSL
......
...@@ -242,8 +242,14 @@ namespace Titanium.Web.Proxy.Http ...@@ -242,8 +242,14 @@ namespace Titanium.Web.Proxy.Http
/// </summary> /// </summary>
internal string RequestBodyString { get; set; } internal string RequestBodyString { get; set; }
/// <summary>
/// Request body was read by user?
/// </summary>
internal bool RequestBodyRead { get; set; } internal bool RequestBodyRead { get; set; }
/// <summary>
/// Request is ready to be sent (user callbacks are complete?)
/// </summary>
internal bool RequestLocked { get; set; } internal bool RequestLocked { get; set; }
/// <summary> /// <summary>
......
...@@ -213,7 +213,14 @@ namespace Titanium.Web.Proxy.Http ...@@ -213,7 +213,14 @@ namespace Titanium.Web.Proxy.Http
/// </summary> /// </summary>
internal string ResponseBodyString { get; set; } internal string ResponseBodyString { get; set; }
/// <summary>
/// Was response body read by user
/// </summary>
internal bool ResponseBodyRead { get; set; } internal bool ResponseBodyRead { get; set; }
/// <summary>
/// Is response is no more modifyable by user (user callbacks complete?)
/// </summary>
internal bool ResponseLocked { get; set; } internal bool ResponseLocked { get; set; }
/// <summary> /// <summary>
......
...@@ -37,9 +37,9 @@ namespace Titanium.Web.Proxy ...@@ -37,9 +37,9 @@ namespace Titanium.Web.Proxy
} }
//check for windows authentication //check for windows authentication
if(EnableWinAuth && if(EnableWinAuth
args.WebSession.Response.ResponseStatusCode == "401" && !RunTime.IsRunningOnMono()
&& !RunTime.IsRunningOnMono()) && args.WebSession.Response.ResponseStatusCode == "401")
{ {
var disposed = await Handle401UnAuthorized(args); var disposed = await Handle401UnAuthorized(args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment