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
fdeb7551
Commit
fdeb7551
authored
May 13, 2018
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing using (in netcoreapp2.1 build)
parent
20921442
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
1 deletion
+24
-1
ExplicitClientHandler.cs
Titanium.Web.Proxy/ExplicitClientHandler.cs
+1
-0
HttpHeader.cs
Titanium.Web.Proxy/Models/HttpHeader.cs
+14
-0
TcpClientConnection.cs
Titanium.Web.Proxy/Network/Tcp/TcpClientConnection.cs
+3
-0
TcpServerConnection.cs
Titanium.Web.Proxy/Network/Tcp/TcpServerConnection.cs
+3
-0
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+3
-1
No files found.
Titanium.Web.Proxy/ExplicitClientHandler.cs
View file @
fdeb7551
...
@@ -13,6 +13,7 @@ using Titanium.Web.Proxy.Exceptions;
...
@@ -13,6 +13,7 @@ using Titanium.Web.Proxy.Exceptions;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Helpers
;
using
Titanium.Web.Proxy.Helpers
;
using
Titanium.Web.Proxy.Http
;
using
Titanium.Web.Proxy.Http
;
using
Titanium.Web.Proxy.Http2
;
using
Titanium.Web.Proxy.Models
;
using
Titanium.Web.Proxy.Models
;
using
Titanium.Web.Proxy.Network.Tcp
;
using
Titanium.Web.Proxy.Network.Tcp
;
...
...
Titanium.Web.Proxy/Models/HttpHeader.cs
View file @
fdeb7551
...
@@ -9,6 +9,13 @@ namespace Titanium.Web.Proxy.Models
...
@@ -9,6 +9,13 @@ namespace Titanium.Web.Proxy.Models
/// </summary>
/// </summary>
public
class
HttpHeader
public
class
HttpHeader
{
{
/// <summary>
/// HPACK: Header Compression for HTTP/2
/// Section 4.1. Calculating Table Size
/// The additional 32 octets account for an estimated overhead associated with an entry.
/// </summary>
public
const
int
HttpHeaderOverhead
=
32
;
internal
static
readonly
Version
VersionUnknown
=
new
Version
(
0
,
0
);
internal
static
readonly
Version
VersionUnknown
=
new
Version
(
0
,
0
);
internal
static
readonly
Version
Version10
=
new
Version
(
1
,
0
);
internal
static
readonly
Version
Version10
=
new
Version
(
1
,
0
);
...
@@ -45,6 +52,13 @@ namespace Titanium.Web.Proxy.Models
...
@@ -45,6 +52,13 @@ namespace Titanium.Web.Proxy.Models
/// </summary>
/// </summary>
public
string
Value
{
get
;
set
;
}
public
string
Value
{
get
;
set
;
}
public
int
Size
=>
Name
.
Length
+
Value
.
Length
+
HttpHeaderOverhead
;
public
static
int
SizeOf
(
string
name
,
string
value
)
{
return
name
.
Length
+
value
.
Length
+
HttpHeaderOverhead
;
}
/// <summary>
/// <summary>
/// Returns header as a valid header string.
/// Returns header as a valid header string.
/// </summary>
/// </summary>
...
...
Titanium.Web.Proxy/Network/Tcp/TcpClientConnection.cs
View file @
fdeb7551
using
System
;
using
System
;
using
System.IO
;
using
System.IO
;
using
System.Net
;
using
System.Net
;
#if NETCOREAPP2_1
using
System.Net.Security
;
#endif
using
System.Net.Sockets
;
using
System.Net.Sockets
;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Extensions
;
...
...
Titanium.Web.Proxy/Network/Tcp/TcpServerConnection.cs
View file @
fdeb7551
using
System
;
using
System
;
using
System.Net
;
using
System.Net
;
#if NETCOREAPP2_1
using
System.Net.Security
;
#endif
using
System.Net.Sockets
;
using
System.Net.Sockets
;
using
StreamExtended.Network
;
using
StreamExtended.Network
;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Extensions
;
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
fdeb7551
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Net
;
using
System.Net
;
#if NETCOREAPP2_1
using
System.Net.Security
;
#endif
using
System.Text.RegularExpressions
;
using
System.Text.RegularExpressions
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
...
@@ -472,7 +475,6 @@ namespace Titanium.Web.Proxy
...
@@ -472,7 +475,6 @@ namespace Titanium.Web.Proxy
/// Gets the connection cache key.
/// Gets the connection cache key.
/// </summary>
/// </summary>
/// <param name="args">The session event arguments.</param>
/// <param name="args">The session event arguments.</param>
/// <param name="isConnect">Is this a CONNECT request.</param>
/// <param name="applicationProtocol"></param>
/// <param name="applicationProtocol"></param>
/// <returns></returns>
/// <returns></returns>
private
async
Task
<
string
>
getConnectionCacheKey
(
SessionEventArgsBase
args
,
private
async
Task
<
string
>
getConnectionCacheKey
(
SessionEventArgsBase
args
,
...
...
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