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
8bbfa308
Commit
8bbfa308
authored
Apr 28, 2019
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP/2 small refactoring
parent
42a5ee99
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
164 additions
and
71 deletions
+164
-71
SessionEventArgs.cs
src/Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
+5
-0
Http2FrameFlag.cs
src/Titanium.Web.Proxy/Http2/Http2FrameFlag.cs
+14
-0
Http2FrameHeader.cs
src/Titanium.Web.Proxy/Http2/Http2FrameHeader.cs
+27
-0
Http2FrameType.cs
src/Titanium.Web.Proxy/Http2/Http2FrameType.cs
+16
-0
Http2Helper.cs
src/Titanium.Web.Proxy/Http2/Http2Helper.cs
+102
-71
No files found.
src/Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
View file @
8bbfa308
...
...
@@ -28,6 +28,11 @@ namespace Titanium.Web.Proxy.EventArguments
/// </summary>
private
bool
reRequest
;
/// <summary>
/// Is this session a HTTP/2 promise?
/// </summary>
public
bool
IsPromise
{
get
;
internal
set
;
}
/// <summary>
/// Constructor to initialize the proxy
/// </summary>
...
...
src/Titanium.Web.Proxy/Http2/Http2FrameFlag.cs
0 → 100644
View file @
8bbfa308
using
System
;
namespace
Titanium.Web.Proxy.Http2
{
[
Flags
]
internal
enum
Http2FrameFlag
:
byte
{
Ack
=
0x01
,
EndStream
=
0x01
,
EndHeaders
=
0x04
,
Padded
=
0x08
,
Priority
=
0x20
,
}
}
\ No newline at end of file
src/Titanium.Web.Proxy/Http2/Http2FrameHeader.cs
0 → 100644
View file @
8bbfa308
namespace
Titanium.Web.Proxy.Http2
{
internal
class
Http2FrameHeader
{
public
int
Length
;
public
Http2FrameType
Type
;
public
Http2FrameFlag
Flags
;
public
int
StreamId
;
public
byte
[]
Buffer
;
public
byte
[]
CopyToBuffer
()
{
int
length
=
Length
;
var
buf
=
Buffer
;
buf
[
0
]
=
(
byte
)((
length
>>
16
)
&
0xff
);
buf
[
1
]
=
(
byte
)((
length
>>
8
)
&
0xff
);
buf
[
2
]
=
(
byte
)(
length
&
0xff
);
buf
[
3
]
=
(
byte
)
Type
;
buf
[
4
]
=
(
byte
)
Flags
;
return
buf
;
}
}
}
src/Titanium.Web.Proxy/Http2/Http2FrameType.cs
0 → 100644
View file @
8bbfa308
namespace
Titanium.Web.Proxy.Http2
{
internal
enum
Http2FrameType
:
byte
{
Data
=
0x00
,
Headers
=
0x01
,
Priority
=
0x02
,
RstStream
=
0x03
,
Settings
=
0x04
,
PushPromise
=
0x05
,
Ping
=
0x06
,
GoAway
=
0x07
,
WindowUpdate
=
0x08
,
Continuation
=
0x09
,
}
}
\ No newline at end of file
src/Titanium.Web.Proxy/Http2/Http2Helper.cs
View file @
8bbfa308
This diff is collapsed.
Click to expand it.
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