Commit 758ca4ab authored by Honfika's avatar Honfika

some ToString overrides added

parent b57c5138
......@@ -5,5 +5,10 @@ namespace Titanium.Web.Proxy.Http
public class ConnectRequest : Request
{
public ClientHelloInfo ClientHelloInfo { get; set; }
public ConnectRequest()
{
Method = "CONNECT";
}
}
}
......@@ -328,13 +328,6 @@ namespace Titanium.Web.Proxy.Http
return true;
}
/// <summary>
/// Constructor.
/// </summary>
public Request()
{
}
/// <summary>
/// Finish the session
/// </summary>
......@@ -346,5 +339,10 @@ namespace Titanium.Web.Proxy.Http
requestBodyString = null;
}
}
public override string ToString()
{
return HeaderText;
}
}
}
......@@ -261,13 +261,6 @@ namespace Titanium.Web.Proxy.Http
statusDescription = httpResult[2];
}
/// <summary>
/// Constructor.
/// </summary>
public Response()
{
}
/// <summary>
/// Finish the session
/// </summary>
......@@ -279,5 +272,10 @@ namespace Titanium.Web.Proxy.Http
responseBodyString = null;
}
}
public override string ToString()
{
return HeaderText;
}
}
}
......@@ -66,5 +66,10 @@ namespace Titanium.Web.Proxy.Models
/// Port.
/// </summary>
public int Port { get; set; }
public override string ToString()
{
return $"{HostName}:{Port}";
}
}
}
......@@ -83,7 +83,6 @@ namespace Titanium.Web.Proxy
RequestUri = httpRemoteUri,
OriginalRequestUrl = httpUrl,
HttpVersion = version,
Method = httpMethod,
};
await HeaderParser.ReadHeaders(clientStreamReader, connectRequest.RequestHeaders);
......
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