Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
8bc50e76
Commit
8bc50e76
authored
Jun 11, 2016
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in dispose param
parent
3ef9595d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
SessionEventArgs.cs
Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
+2
-7
HttpWebClient.cs
Titanium.Web.Proxy/Http/HttpWebClient.cs
+3
-0
ProxyClient.cs
Titanium.Web.Proxy/Network/ProxyClient.cs
+4
-4
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
No files found.
Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
View file @
8bc50e76
...
...
@@ -31,7 +31,7 @@ namespace Titanium.Web.Proxy.EventArguments
}
/// <summary>
/// Holds a reference to
server connection
/// Holds a reference to
client
/// </summary>
internal
ProxyClient
ProxyClient
{
get
;
set
;
}
...
...
@@ -41,7 +41,7 @@ namespace Titanium.Web.Proxy.EventArguments
public
bool
IsHttps
=>
WebSession
.
Request
.
RequestUri
.
Scheme
==
Uri
.
UriSchemeHttps
;
public
IPEndPoint
ClientEndPoint
=>
(
IPEndPoint
)
TcpClient
.
Client
.
RemoteEndPoint
;
public
IPEndPoint
ClientEndPoint
=>
(
IPEndPoint
)
ProxyClient
.
TcpClient
.
Client
.
RemoteEndPoint
;
/// <summary>
/// A web session corresponding to a single request/response sequence
...
...
@@ -49,11 +49,6 @@ namespace Titanium.Web.Proxy.EventArguments
/// </summary>
public
HttpWebClient
WebSession
{
get
;
set
;
}
/// <summary>
/// Reference to client connection
/// </summary>
internal
TcpClient
TcpClient
{
get
;
set
;
}
/// <summary>
/// implement any cleanup here
...
...
Titanium.Web.Proxy/Http/HttpWebClient.cs
View file @
8bc50e76
...
...
@@ -11,6 +11,9 @@ namespace Titanium.Web.Proxy.Http
{
public
class
HttpWebClient
{
/// <summary>
/// Connection to server
/// </summary>
internal
TcpConnection
ServerConnection
{
get
;
set
;
}
public
Request
Request
{
get
;
set
;
}
...
...
Titanium.Web.Proxy/Network/ProxyClient.cs
View file @
8bc50e76
...
...
@@ -10,22 +10,22 @@ namespace Titanium.Web.Proxy.Network
public
class
ProxyClient
{
/// <summary>
/// TcpClient used to communicate with
server
/// TcpClient used to communicate with
client
/// </summary>
internal
TcpClient
TcpClient
{
get
;
set
;
}
/// <summary>
/// holds the stream to
server
/// holds the stream to
client
/// </summary>
internal
Stream
ClientStream
{
get
;
set
;
}
/// <summary>
/// Used to read line by line from
server
/// Used to read line by line from
client
/// </summary>
internal
CustomBinaryReader
ClientStreamReader
{
get
;
set
;
}
/// <summary>
/// used to write line by line to
server
/// used to write line by line to
client
/// </summary>
internal
StreamWriter
ClientStreamWriter
{
get
;
set
;
}
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
8bc50e76
...
...
@@ -198,7 +198,7 @@ namespace Titanium.Web.Proxy
}
var
args
=
new
SessionEventArgs
();
args
.
TcpClient
=
client
;
args
.
ProxyClient
.
TcpClient
=
client
;
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment