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
51a8e576
Commit
51a8e576
authored
Jul 27, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
key exists fix
parent
2ac01623
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
SessionEventArgsBase.cs
Titanium.Web.Proxy/EventArguments/SessionEventArgsBase.cs
+1
-1
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+3
-3
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+1
-1
No files found.
Titanium.Web.Proxy/EventArguments/SessionEventArgsBase.cs
View file @
51a8e576
...
...
@@ -40,7 +40,7 @@ namespace Titanium.Web.Proxy.EventArguments
bufferSize
=
server
.
BufferSize
;
bufferPool
=
server
.
BufferPool
;
exceptionFunc
=
server
.
ExceptionFunc
;
TimeLine
.
Add
(
"Session Created"
,
DateTime
.
Now
)
;
TimeLine
[
"Session Created"
]
=
DateTime
.
Now
;
}
protected
SessionEventArgsBase
(
ProxyServer
server
,
ProxyEndPoint
endPoint
,
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
51a8e576
...
...
@@ -165,7 +165,7 @@ namespace Titanium.Web.Proxy
//we need this to syphon out data from connection if API user changes them.
request
.
SetOriginalHeaders
();
args
.
TimeLine
.
Add
(
"Request Received"
,
DateTime
.
Now
)
;
args
.
TimeLine
[
"Request Received"
]
=
DateTime
.
Now
;
// If user requested interception do it
await
invokeBeforeRequest
(
args
);
...
...
@@ -215,7 +215,7 @@ namespace Titanium.Web.Proxy
//for connection pool, retry fails until cache is exhausted.
var
result
=
await
retryPolicy
<
ServerConnectionException
>().
ExecuteAsync
(
async
(
serverConnection
)
=>
{
args
.
TimeLine
.
Add
(
"Server Connection Created"
,
DateTime
.
Now
)
;
args
.
TimeLine
[
"Server Connection Created"
]
=
DateTime
.
Now
;
// if upgrading to websocket then relay the request without reading the contents
if
(
request
.
UpgradeToWebSocket
)
...
...
@@ -383,7 +383,7 @@ namespace Titanium.Web.Proxy
await
handleHttpSessionResponse
(
args
);
}
args
.
TimeLine
.
Add
(
"Response Sent"
,
DateTime
.
Now
)
;
args
.
TimeLine
[
"Response Sent"
]
=
DateTime
.
Now
;
}
/// <summary>
...
...
Titanium.Web.Proxy/ResponseHandler.cs
View file @
51a8e576
...
...
@@ -24,7 +24,7 @@ namespace Titanium.Web.Proxy
// read response & headers from server
await
args
.
WebSession
.
ReceiveResponse
(
cancellationToken
);
args
.
TimeLine
.
Add
(
"Response Received"
,
DateTime
.
Now
)
;
args
.
TimeLine
[
"Response Received"
]
=
DateTime
.
Now
;
var
response
=
args
.
WebSession
.
Response
;
args
.
ReRequest
=
false
;
...
...
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