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
2b9a7d35
Commit
2b9a7d35
authored
Mar 23, 2018
by
Honfika
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/justcoding121/Titanium-Web-Proxy
into develop
parents
2543b9c8
13c9ba0a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
18 deletions
+19
-18
FuncExtensions.cs
Titanium.Web.Proxy/Extensions/FuncExtensions.cs
+2
-3
ProxyServer.cs
Titanium.Web.Proxy/ProxyServer.cs
+0
-15
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+8
-0
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+9
-0
No files found.
Titanium.Web.Proxy/Extensions/FuncExtensions.cs
View file @
2b9a7d35
...
@@ -23,10 +23,9 @@ namespace Titanium.Web.Proxy.Extensions
...
@@ -23,10 +23,9 @@ namespace Titanium.Web.Proxy.Extensions
{
{
await
callback
(
sender
,
args
);
await
callback
(
sender
,
args
);
}
}
catch
(
Exception
e
x
)
catch
(
Exception
e
)
{
{
var
ex2
=
new
Exception
(
"Exception thrown in user event"
,
ex
);
exceptionFunc
(
new
Exception
(
"Exception thrown in user event"
,
e
));
exceptionFunc
(
ex2
);
}
}
}
}
}
}
...
...
Titanium.Web.Proxy/ProxyServer.cs
View file @
2b9a7d35
...
@@ -660,21 +660,6 @@ namespace Titanium.Web.Proxy
...
@@ -660,21 +660,6 @@ namespace Titanium.Web.Proxy
endPoint
.
Listener
.
Server
.
Dispose
();
endPoint
.
Listener
.
Server
.
Dispose
();
}
}
private
async
Task
InvokeBeforeRequest
(
SessionEventArgs
args
)
{
if
(
BeforeRequest
!=
null
)
{
await
BeforeRequest
.
InvokeAsync
(
this
,
args
,
ExceptionFunc
);
}
}
private
async
Task
InvokeBeforeResponse
(
SessionEventArgs
args
)
{
if
(
BeforeResponse
!=
null
)
{
await
BeforeResponse
.
InvokeAsync
(
this
,
args
,
ExceptionFunc
);
}
}
internal
void
UpdateClientConnectionCount
(
bool
increment
)
internal
void
UpdateClientConnectionCount
(
bool
increment
)
{
{
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
2b9a7d35
...
@@ -599,5 +599,13 @@ namespace Titanium.Web.Proxy
...
@@ -599,5 +599,13 @@ namespace Titanium.Web.Proxy
requestHeaders
.
FixProxyHeaders
();
requestHeaders
.
FixProxyHeaders
();
}
}
private
async
Task
InvokeBeforeRequest
(
SessionEventArgs
args
)
{
if
(
BeforeRequest
!=
null
)
{
await
BeforeRequest
.
InvokeAsync
(
this
,
args
,
ExceptionFunc
);
}
}
}
}
}
}
Titanium.Web.Proxy/ResponseHandler.cs
View file @
2b9a7d35
...
@@ -125,5 +125,14 @@ namespace Titanium.Web.Proxy
...
@@ -125,5 +125,14 @@ namespace Titanium.Web.Proxy
var
compressor
=
CompressionFactory
.
GetCompression
(
encodingType
);
var
compressor
=
CompressionFactory
.
GetCompression
(
encodingType
);
return
await
compressor
.
Compress
(
responseBodyStream
);
return
await
compressor
.
Compress
(
responseBodyStream
);
}
}
private
async
Task
InvokeBeforeResponse
(
SessionEventArgs
args
)
{
if
(
BeforeResponse
!=
null
)
{
await
BeforeResponse
.
InvokeAsync
(
this
,
args
,
ExceptionFunc
);
}
}
}
}
}
}
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